- Microservices Development Cookbook
- Paul Osman
- 219字
- 2021-07-16 17:48:27
Evolving your monolith into services
One of the most complicated aspects of transitioning from a monolith to services can be request routing. In later recipes and chapters, we'll explore the topic of exposing your services to the internet so that the mobile and web client applications can communicate directly with them. For now, however, having your monolith act as a router can serve as a useful intermediary step.
As you break your monolith into small, maintainable microservices, you can replace code paths in your monolith with calls to your services. Depending on the programming language or framework you used to build your monolith, these sections of code can be called controller actions, views, or something else. We'll continue to assume that your monolith was built in the popular Ruby on Rails framework; in which case, we'll be looking at controller actions. We'll also assume that you've begun refactoring your monolith and have created one or more service objects as described in the previous recipe.
It's important when doing this to follow best practices. In later chapters, we'll introduce concepts, such as circuit breakers, that become important when doing service-to-service communication. For now, be mindful that HTTP calls from your monolith to a service could fail, and you should consider how best to handle that kind of situation.
- CorelDRAW X6 中文版圖形設計實戰從入門到精通
- 面向物聯網的CC2530與傳感器應用開發
- 智能網聯汽車V2X與智能網聯設施I2X
- 走進物聯網
- Web Application Development with R Using Shiny
- Hands-On Full Stack Development with Spring Boot 2 and React(Second Edition)
- 網絡互聯技術(實踐篇)
- 網絡安全技術與解決方案(修訂版)
- 計算機網絡原理與應用技術
- 圖解手機元器件維修技巧
- Mastering Dart
- Dart Cookbook
- Web用戶查詢日志挖掘與應用
- Intelligent Mobile Projects with TensorFlow
- 網絡互聯技術(理論篇)