Postagens

Example of microservice architecture for a restaurant system

Imagem
The idea here is to generate the back-end of a system for restaurants, here I will abstract myself from certain conditions, as we will not have the front-end layer here, I'm elaborating a micro-service architecture, so the front-end in theory could be any channel, like a website , an app, and more. This service can be accessed in several ways, you could put it in the cloud, host on a server, in many ways using the concept of containers, it doesn't matter, each one must choose their best form and option for their business. Initially in this step, I chose an architecture using an queue. A queue is an ordered collection of items where the addition of new items happens at one end, called the “rear,” and the removal of existing items occurs at the other end, commonly called the “front.” As an element enters the queue it starts at the rear and makes its way toward the front, waiting until that time when it is the next element to be removed. The most recently added item in...

Simple Application Microservices and MongoDB using Clean Architecture

Imagem
Simple Application Microservices and MongoDB using Clean Architecture Created in mid-2012 by Robert Cecil Martin ("Uncle Bob"), Clean Architecture has as main purposes to be independent of frameworks, easily testable, regardless of the user interface, that is, the user interface can change at will without this reflects in the rest of the system, be independent of database, since it maintains all business rules in the application itself and, finally, be independent of any external agent, and the business rules do not "see" the " outside world ". For start my application I studied some frameworks before choose some, at the end the choose was not for performance, just for an example I choose the fasted way to developed, easy understand, easy codification and quick production instead of best performance. You can ask me, why I would choose facility instead of performance ? First question, do you really need a truck...

Clean Architecture personal Analysis

Imagem
Created in mid-2012 by Robert Cecil Martin ("Uncle Bob"), Clean Architecture has as main purposes to be independent of frameworks, easily testable, regardless of the user interface, that is, the user interface can change at will without this reflects in the rest of the system, be independent of database, since it maintains all business rules in the application itself and, finally, be independent of any external agent, and the business rules do not "see" the " outside world ". Clean Architecture Though these architectures all vary somewhat in their details, they are very similar. They all have the same objective, which is the separation of concerns. They all achieve this separation by dividing the software into layers. Each has at least one layer for business rules, and another for interfaces. Each of these architectures produce systems that are: Independent of Frameworks. The architecture does not depend on the existence of some li...

Akka vs. Spring Reactor personal comparison

Imagem
Akka vs. Spring Reactor personal comparison: I used for both a mass of Fake data of 200000 records for each. Both use the Reactive Streams Specification (Reactive Streams) Reactive Streams is an initiative to provide a standard for asynchronous flow processing with non-blocking return pressure. This includes efforts focused on runtime environments (JVM and JavaScript) as well as network protocols. What we want is asynchronous and non-blocking. A group of developers of companies like Netflix, Pivotal, RedHat, etc. met and converged to something called The Reactive Streams Specification.   Akka framework Akka is an Opensource framework. Akka is implemented from the agent model (originated in 1973 by Carl Hewitt), which provides a model for dealing with concurrent computing. Akka, the unit of execution is the Actor and his microservices are built as actors. An actor is lightweight and there may be sev...