Exploring Dapr’s building blocks
A building block refers to an HTTP or gRPC API that can be called from code and utilizes one or more Dapr components. These blocks are designed to tackle frequent hurdles encountered in constructing microservices applications that are robust and follow industry best practices and patterns. In this chapter, we will explore three building blocks.
Service-to-service invocation
The service-to-service invocation building block will help your application communicate with other applications and services reliably and securely. The service-to-service invocation building blocks help you address the following challenges:
- Service discovery
- Secure service communication
- Handle retires and transient errors
- Implement observability and tracing
- Standardize API calls between services
As mentioned earlier, Dapr uses the Sidecar architecture. To communicate between services, your application needs to invoke an API in the Dapr...