The Single Responsibility Principle (SRP) states that every module, class, or service should have one reason to change—meaning it is responsible for only one thing.
When applied to blok, this means:
A blok is responsible for one well-defined task or logic, such as sending an email, processing a payment, or validating user input.
The focus is not on how small the service is but on its clarity of purpose.
Reality: A blok can be as simple as a few lines of code or more complex, depending on the task it performs. What matters is that it does one thing well.
Unlike monolithic or traditional microservices, bloks provide a granular level of control and separation, adhering to SRP principles while remaining lightweight and efficient.
Blok are not about shrinking services into arbitrary sizes. Instead, they champion the Single Responsibility Principle, ensuring every service does one thing exceptionally well. By embracing this philosophy, developers can create backend systems that are modular, efficient, and ready for the demands of modern applications.