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

Reliability

When a monolith fails, it tends to fail completely. A database is unavailable, and then the application tries to use stale connections in a connection pool, eventually the threads or processes serving requests lock up, and users are left with a white screen of death or a inoperable mobile application. Microservices allow you to decide on a case-by-case basis how a failure in a particular part of your application should be treated. If your service cannot reach a database, perhaps it's better to return a stale cache, or an empty response. If your service has to throw up its hands and start returning HTTP 503 responses, upstream services can respond by applying back pressure, allowing the service to catch up. Microservices give you much more freedom to isolate failures in your system, resulting in a happier experience for your users.

This book will serve as a handy reference for many of the subjects that will come up as you develop microservices. We'll start with recipes that will help you make the transition from a monolith to a suite of microservices. Subsequent chapters will address specific areas or challenges that come up when choosing how best to architect and manage your microservices. Recipes that cover code will include working, simple, tested examples that you can use in your own applications. My hope is that this book will help you think about, plan, and execute the development of microservice-based applications. Enjoy!

主站蜘蛛池模板: 漾濞| 互助| 贵阳市| 曲水县| 浦东新区| 临泽县| 莱州市| 湄潭县| 温州市| 来凤县| 新源县| 文登市| 安塞县| 象山县| 明光市| 彰化县| 岳西县| 上栗县| 新化县| 陆丰市| 三亚市| 六枝特区| 东莞市| 商城县| 且末县| 彰化县| 望谟县| 正阳县| 莱阳市| 连云港市| 浦江县| 密云县| 深水埗区| 精河县| 耒阳市| 长海县| 阿克苏市| 通州市| 陆良县| 廉江市| 广河县|