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

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!

主站蜘蛛池模板: 工布江达县| 清苑县| 宁南县| 澳门| 宽甸| 绵竹市| 浦东新区| 营山县| 崇义县| 丹棱县| 石渠县| 青神县| 萨嘎县| 太仆寺旗| 宜城市| 沽源县| 乐业县| 诸城市| 镇坪县| 福清市| 锦屏县| 彰化县| 贵南县| 营口市| 乐业县| 龙山县| 张掖市| 横山县| 周至县| 万载县| 安徽省| 娄烦县| 图木舒克市| 大化| 新疆| 广灵县| 周至县| 泾阳县| 察雅县| 增城市| 古田县|