Tutorial: From monolithic to microservices
In this chapter's examples, we will not use a framework and the code will be written without using a MVC architecture in order to focus on the subject of this chapter and learn how to transform a monolithic application into microservices.
There is no better way to learn something than by practicing, so let's look at an entire example of a blog platform that we defined in the previous section.
Tip
The blog platform example can be downloaded from our PHP microservices repository, so if you want to follow our steps, it is possible to do so by downloading it and following this guide.
Our example is a basic blog platform with the minimum functionalities to go through this tutorial. It is a blog system that allows the following things:
- Registering new users
- Logging in users
- Admins can post new articles
- Registered users can post new comments
- Admins can create new categories
- Admins can create new articles
- Admins can manage the comments
- All the users can...