用微服务之前,你应该知道的微服务知识

{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"目前,微服务正在改变我们构建应用程序的方式。当讨论软件体系架构时,微服务无疑是最热门的趋势之一。现在,有越来越多的开发人员开始考虑使用或已经采用了微服务。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"微服务是传统软件构造方法的替代选项,它让开发人员在构建复杂的软件应用时,可以具有更高的灵活性、可伸缩性以及便利性。世界上的诸多知名公司,比如Amazon、Netflix、eBay、Spotify、Uber和Groupon等都已经意识到使用微服务带来的优势。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"本文总结了关于微服务的一些知识,可以方便你更快上手使用微服务。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"微服务是什么?"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/31\/1a\/31544671f88d0b800dc47aafc04a1a1a.jpeg","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"使用微服务意味着以松耦合的模式来构建应用程序。在微服务模式下,我们会将程序分割成几个小的应用服务,每个小的服务代表一个独立的业务目标。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"将复杂的应用拆解为多个小的微服务后,每个服务可以使用合适的编程语言(比如Node.js、Java、PHP等)单独进行开发和维护。"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"微服务让开发团队可以"},{"type":"text","marks":[{"type":"strong"}],"text":"自由选择他们最喜欢的技术栈"},{"type":"text","text":",不用再担心自己或别人开发的应用因为技术栈的不同而对整个应用造成影响。与单体架构时代相比,这使得开发人员可以更高效地操作和运维,并且对应用的正常运行更有信心。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"但是,"},{"type":"text","marks":[{"type":"strong"}],"text":"这并不意味着我们可以完全抛弃单体架构"},{"type":"text","text":"。在单体架构与微服务架构的选择问题上,很多公司十分谨慎。确实也应该这样,做好准确地评估是十分重要的举措。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章