It doesn't have to be microservices. You can use modular architecture. You can use polylith. You can have boundaries in your code and mock around them.