- Kubernetes Design Patterns and Extensions
- Onur Yilmaz
- 220字
- 2021-07-23 16:57:38
Behavioral Patterns
In software development, behavioral design patterns focus on the communication and interaction between objects. Interaction and communication includes responsibility assignment, the encapsulation of behaviors, and the delegation of requests. With the microservice architecture, behavioral patterns focus on the communication between microservices and the interaction of services with orchestration tools.
For instance, let's consider the execution of a microservice that checks a user's quota daily. It can be implemented by an infinite loop that includes 24 hours of sleep and the execution of the quota check. Although it works, it consumes additional resources during sleep and creates an inefficient architecture. With the behavioral pattern of the "scheduled job pattern," orchestration tools could handle the scheduling of the microservice and ensure that it runs every 24 hours.
In Kubernetes, containers are encapsulated inside pods, which are the primary interest of behavioral patterns. Behavioral patterns are focused on the interaction and communication of the Kubernetes resources, namely pods, with the Kubernetes services. Communication and interaction within the controller system could include the distribution of pods to nodes, the scheduling of pods, or metadata distribution by the Kubernetes master and node components.
The following behavioral patterns are covered in the following sections:
- The job pattern
- The scheduled job pattern
- The daemon service pattern
- The singleton service pattern
- The introspective pattern
- TestStand工業自動化測試管理(典藏版)
- 數據運營之路:掘金數據化時代
- PIC單片機C語言非常入門與視頻演練
- Hadoop Real-World Solutions Cookbook(Second Edition)
- Pig Design Patterns
- Grome Terrain Modeling with Ogre3D,UDK,and Unity3D
- Windows安全指南
- PowerMill 2020五軸數控加工編程應用實例
- Hands-On Microservices with C#
- 7天精通Photoshop CS5平面視覺設計
- 百度智能小程序:AI賦能新機遇
- OSGi原理與最佳實踐
- 新手學Photoshop CS6數碼照片處理
- 從零開始學Visual C++
- 機器人系統設計與制作:Python語言實現(原書第2版)