11
Server Architectures
In earlier chapters, we discussed architecture at the macro level. Service is the fundamental component of those designs, which implements functionality that we can’t borrow among architectural building blocks. This chapter explores how we can implement well-designed, efficient, and stable services.
Writing a Service
Several frameworks (e.g., Spring Boot, Ballerina) let you write a service. In each case, you adopt a template that looks something like this:
Response do-something(request){
//code
response = ...
return response
}
The request
object represents the user’s input, typically JSON, XML, or a binary protocol such as Protocol Buffers. We then process the request, carry out what is ...
Get Software Architecture and Decision-Making: Leveraging Leadership, Technology, and Product Management to Build Great Products now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.