随笔分类 -  架构

摘要:使用C# (.NET Core) 实现观察者模式 (Observer Pattern) 并介绍 delegate 和 event 观察者模式 这里面综合了几本书的资料. 需求 有这么个项目: 需求是这样的: 一个气象站, 有三个传感器(温度, 湿度, 气压), 有一个WeatherData对象, 它 阅读全文
posted @ 2020-04-02 10:59 PanPan003 阅读(227) 评论(0) 推荐(0) 编辑
摘要:使用 OAS(OpenAPI标准)来描述 Web API 无论哪种类型的Web API, 都可能需要给其他开发者使用. 所以API的开发者体验是很重要的. API的开发者体验, 简写为 API DX (Developer Experience). 它包含很多东西, 例如如何使用API, 文档, 技术 阅读全文
posted @ 2020-04-02 10:57 PanPan003 阅读(884) 评论(0) 推荐(0) 编辑
摘要:zhex 阅读全文
posted @ 2020-04-02 10:46 PanPan003 阅读(108) 评论(0) 推荐(0) 编辑
摘要:原文地址:康威定律,作为架构师还不会灵活运用? Soft skills are always hard than hard skills. 软技能比硬技能难。 老板听说最近流行“微服务”,问架构师咱们的系统要不要来一套?老板又听说最近流行“中台系统”,问架构师咱们要不要搞起来?其实,这些问题不用老板 阅读全文
posted @ 2020-04-02 10:44 PanPan003 阅读(438) 评论(0) 推荐(0) 编辑
摘要:依赖反转原则DIP 与使用了Repository模式的asp.net core项目结构 DIP 依赖反转原则 Dependency Inversion Principle 的定义如下: 高级别的模块不应该依赖于低级别的模块, 他们都应该依赖于抽象. 假设Controller依赖于Repository 阅读全文
posted @ 2020-04-02 10:25 PanPan003 阅读(344) 评论(0) 推荐(0) 编辑
摘要:看完此文,妈妈还会担心你docker入不了门? 本文在个人技术博客不同步发布,详情可猛戳亦可扫描屏幕右侧二维码关注个人公众号,公众号内有个人联系方式,等你来撩... 上周对象突然心血来潮说想养个小宠物,我问想养啥她又说随便,你看着办!!!这我真的比较难办啊!但是咱们程序员能有个对象就不错了,还不赶紧 阅读全文
posted @ 2020-04-01 17:46 PanPan003 阅读(223) 评论(0) 推荐(0) 编辑
摘要:原文:再过半小时,你就能明白kafka的工作原理了 会出现什么情况呢? 1、为了这个女朋友,我请假回去拿(老板不批)。 2、小哥一直在你楼下等(小哥还有其他的快递要送)。 3、周末再送(显然等不及)。 4、这个女朋友我不要了(绝对不可能)! 在上面例子中,“快递小哥”和“买女朋友的我”就是需要交互的 阅读全文
posted @ 2020-03-27 12:13 PanPan003 阅读(798) 评论(1) 推荐(1) 编辑
摘要:原文连接:一次给女朋友转账引发我对分布式事务的思考 本地事务 谈到本地事务,大家可能都很熟悉,因为这个数据库引擎层面能支持的!所以也称数据库事务,数据库事务四大特征:原子性(A),一致性(C),隔离性(I)和持久性(D),而在这四大特性中,我认为一致性是最基本的特性,其它的三个特性都为了保证一致性而 阅读全文
posted @ 2020-03-27 12:03 PanPan003 阅读(196) 评论(0) 推荐(0) 编辑
摘要:背景: 修改了configmaps之后,重启pods,Kubernetes中pods一个失败、一个runing: 分析思路: 1.查看问题pods: 1.1.表现:pods数量频繁变化:因为pods不断陷入(create-error-create)的循环。 1.2.说明: replicas设置为2。 阅读全文
posted @ 2020-03-05 18:40 PanPan003 阅读(7827) 评论(0) 推荐(0) 编辑
摘要:原文链接:Let’s build a full stack MongoDB, React, Node and Express (MERN) app github源码地址:jelorivera08/react_fullstack from being a Front End Developer to 阅读全文
posted @ 2019-11-06 11:15 PanPan003 阅读(327) 评论(0) 推荐(0) 编辑
摘要:突然理解了各大电信公司客服说的最多的一句话“您提交的申请将会在**小时之后生效,建议您到时登陆查看”。 分析之后,我认为这里面大多的原因在于: 1.定时任务; 2.缓存有效期。 可见这么庞大的公司,目前对缓存的处理也未想出更好的解决方式(如果可以更及时的处理这些数据更新的需求,应该可以解决客服人员不 阅读全文
posted @ 2019-10-30 11:17 PanPan003 阅读(141) 评论(0) 推荐(0) 编辑
摘要:part 1:Tracing1 Sampling Sampling Sampling Samplers Global sampler Per span sampler Rules References Global sampler Per span sampler 阅读全文
posted @ 2019-10-28 17:00 PanPan003 阅读(133) 评论(0) 推荐(0) 编辑
摘要:#拉取redis > docker pull redis:latest latest: Pulling from library/redis 8d691f585fa8: Pull complete 8ccd02d17190: Pull complete 4719eb1815f2: Pull comp 阅读全文
posted @ 2019-10-23 20:53 PanPan003 阅读(1291) 评论(0) 推荐(0) 编辑
摘要:OpenCensus Easily collect telemetry like metrics and distributed traces from your services OpenCensus and OpenTracing have merged to form OpenTelemetr 阅读全文
posted @ 2019-10-22 17:49 PanPan003 阅读(527) 评论(0) 推荐(0) 编辑
摘要:官网链接:https://opentelemetry.io/about/ OpenTelemetry is the next major version of the OpenTracing and OpenCensus projects The leadership of OpenCensus a 阅读全文
posted @ 2019-10-22 16:40 PanPan003 阅读(576) 评论(0) 推荐(0) 编辑
摘要:官网链接:https://opentracing.io/guides/ 官方微博:https://medium.com/opentracing Welcome to the OpenTracing Guides! Guides are “how-to manuals” for using OpenT 阅读全文
posted @ 2019-10-22 15:11 PanPan003 阅读(526) 评论(0) 推荐(0) 编辑
摘要:中文文档地址:https://wu-sheng.gitbooks.io/opentracing-io/content/pages/quick-start.html 中文github地址:https://github.com/opentracing-contrib/opentracing-specif 阅读全文
posted @ 2019-10-21 11:50 PanPan003 阅读(188) 评论(0) 推荐(0) 编辑
摘要:官网:https://opentracing.io/docs/best-practices/ Best Practices This page aims to illustrate common use cases that developers who instrument their appli 阅读全文
posted @ 2019-10-17 19:13 PanPan003 阅读(492) 评论(0) 推荐(0) 编辑
摘要:patch命令 kubectl patch — Update field(s) of a resource using strategic merge patch Synopsis kubectl patch [Options] Description Update field(s) of a re 阅读全文
posted @ 2019-10-10 17:27 PanPan003 阅读(2030) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示