9/23/2023 0 Comments Java hexagonal game![]() ![]() The core of the application uses these ports to communicate to external services like Databases, UI, etc. However, the outbound port works as a path from external services to the core logic. In other words, exposes the center of the hexagon to its edges. Inbound port exposes the core logic to the external services. There are two types of ports – Inbound and Outbound. Here, ports and adapters act as a communication medium between core logic and external interfaces. Therefore, the core business logic of the application is segregated from outside concerns. The edges could be a user interface, database connection, messaging services, web services, etc. The hexagonal edges act as input and output elements. At the center of the hexagon, entire core business logic is present. It represents the application as a Hexagon. Hexagonal architecture is a design pattern in Java. ![]() The workaround for this is Hexagonal architecture. Would we rather choose to work with the code which is properly segregated into different parts (Core logic and additional services) or the messed-up code? Well, a skilled programmer will always choose the former. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |