Post by raselbd114 on Dec 5, 2023 8:22:08 GMT
This approach separates and makes the application independent from solutions from various suppliers and enables migration without the need to interfere with the code. Construction of a building block Example use: Migrate from Mongo DB to Redis Our application to manage application state uses a noSQL database the MongoDB solution referring to it directly in the code via the SDK. For performance reasons we decided to migrate to Redis.
Consequently we need to change the MongoDBspecific SDK and application code to adapt it to Redis. If we were to use the state management building block from Dapr from the beginning such a change would be limited to correcting the component type in the YAML configuration file. construction blocks and their responsibilities Dapr consists of seven building blocks and due to its open nature adding more is Email Marketing List not a problem. Let's look at individual blocks in the context of their responsibilities. Servicetoservice invocation It enables direct communication between services ensuring: reliability automatic resending of messages in the event of errors e.g. network errors mutual authentication mTLS and encrypted access control ACL load balancing Round Robin algorithm automatic service discovery uses Kubernetes DNS or mDNS depending on the environment.
State management It allows you to manage the state of servicesactors ensuring: data warehouses in the form of plugins you can connect one of many solutions available on the market Redis MongoDB MySQL etc. optimistic concurrency control optimistic concurrency control using Etag headers data consistency supports strong consistency and eventual consistency bulk operations Publish and subscribe Implements the PublishSubscribe pattern providing: integration with solutions such as Redis Streams Azure Service Bus AWS SNSSQS etc. format of transmitted messages consistent with the CloudEvents specification guarantee of message delivery at least once message life time control
Consequently we need to change the MongoDBspecific SDK and application code to adapt it to Redis. If we were to use the state management building block from Dapr from the beginning such a change would be limited to correcting the component type in the YAML configuration file. construction blocks and their responsibilities Dapr consists of seven building blocks and due to its open nature adding more is Email Marketing List not a problem. Let's look at individual blocks in the context of their responsibilities. Servicetoservice invocation It enables direct communication between services ensuring: reliability automatic resending of messages in the event of errors e.g. network errors mutual authentication mTLS and encrypted access control ACL load balancing Round Robin algorithm automatic service discovery uses Kubernetes DNS or mDNS depending on the environment.
State management It allows you to manage the state of servicesactors ensuring: data warehouses in the form of plugins you can connect one of many solutions available on the market Redis MongoDB MySQL etc. optimistic concurrency control optimistic concurrency control using Etag headers data consistency supports strong consistency and eventual consistency bulk operations Publish and subscribe Implements the PublishSubscribe pattern providing: integration with solutions such as Redis Streams Azure Service Bus AWS SNSSQS etc. format of transmitted messages consistent with the CloudEvents specification guarantee of message delivery at least once message life time control