53
CHAPTER 3 | Architecting container and microservice-based applications
When a client uses request/response communication, it assumes that the response will arrive in a
short time,
typically less than a second, or a few seconds at most. For delayed responses, you need to
implement asynchronous communication based on
messaging
patterns
and
messaging technologies
,
which is a different approach that we explain in the next section.
A popular architectural style for request/response communication is
REST
. This approach is based on,
and
tightly coupled to, the
HTTP
protocol, embracing HTTP verbs like GET, POST, and PUT. REST is the
most commonly used architectural communication approach when creating services. You can
implement REST services when you develop ASP.NET Core Web API services.
There’s additional value when using HTTP REST services as your interface definition language. For
instance, if you use
Swagger metadata
to describe your service API, you can
use tools that generate
client stubs that can directly discover and consume your services.
Dostları ilə paylaş: