官术网_书友最值得收藏!

Understanding Microservices

We're always trying to improve how we build software, and since the punched-card era, we have improved a lot, to say the least.

The microservices trend is one improvement that has emerged in the last few years, partially based on companies' willingness to speed up their release cycles. They want to ship new products and new features to their customers as fast as possible. They want to be agile by iterating often, and they want to ship, ship, and ship again.

If thousands, or even millions, of customers use your service, pushing in production an experimental feature, and removing it if it does not work, is considered good practice rather than baking it for months before you publish it.

Companies such as Netflix are promoting their continuous delivery techniques where small changes are made very often into production, and tested on a subset of the user base. They've developed tools such as Spinnaker (http://www.spinnaker.io/) to automate as many steps as possible to update production, and ship their features in the cloud as independent microservices.

But if you read Hacker News or Reddit, it can be quite hard to detangle what's useful for you and what's just buzzwords-compliant journalistic-style info.

"Write a paper promising salvation, make it a structured something or a virtual something, or abstract, distributed or higher-order or applicative and you can almost be certain of having started a new cult.
- Edsger W. Dijkstra

This chapter is going to help you understand what are microservices, and will then focus on the various ways in which you can implement them using Python. It's composed of the following few sections:

  • A word on Service-Oriented Architecture
  • Monolithic approach of building an application
  • Microservices approach of building applications
  • Benefits of microservices
  • Pitfalls in microservices
  • Implementing microservices with Python

Hopefully, once you've reached the end of the chapter, you will be able to dive into building microservices with a good understanding of what they are and what they aren't--and how you can use Python.

主站蜘蛛池模板: 霍林郭勒市| 日土县| 林西县| 宜城市| 孟连| 浮梁县| 白水县| 赫章县| 邯郸县| 屏南县| 保康县| 麻江县| 沁阳市| 日喀则市| 托克托县| 宝兴县| 宝兴县| 芦溪县| 贵港市| 孟州市| 许昌市| 齐河县| 平乐县| 建宁县| 青冈县| 班玛县| 工布江达县| 凤阳县| 遵化市| 高台县| 万荣县| 四会市| 祁连县| 穆棱市| 图木舒克市| 武胜县| 山阴县| 台中市| 五河县| 利津县| 芮城县|