This chapter will give an overview of what practices are helpful and recommended for microservices. So far, you have seen and learned how to write microservices in Swift with Vapor. In this chapter, we are going to check out some best practices that will help you write your own services.
We will look at how simplicity is the strength of microservices and how to achieve it. Then we will look at some Swift-specific perks that will go a long way for microservices. Often, code is either over-simplified or over-complicated; one section in this chapter aims to guide you through those decisions. Afterward, we will analyze how best to balance these two approaches with microservices. Finally, we will look into troubleshooting and debugging microservices. By the end of this chapter, you will be well equipped to write server-side Swift applications with efficient practices...