Answer the question
In order to leave comments, you need to log in
Need help with SOA ESB - php?
Hello. Parsing the article
https://www.dobryakov.com/blog/1625/#more-1625
Here is an excerpt
SOA event model in program code
In short, you need to look at your code not as classes with functions (methods), but as events and actions that occur in response to those events.
Moreover, the results of actions are also events.
In relation to the architecture under discussion, we can say that local events are events that occurred inside a particular PHP script, and remote events are events that came to this script from the AMQP queue (or are sent there as a result). If you treat all your code in this way, it will immediately lead to a surprising and very important effect:
If local and remote events are the same, then local and remote event handlers are the same!
Why is it so important? Because the programmers of your team continue to write regular PHP code, without thinking about where this or that event will be processed - right there in this or a neighboring PHP script, or somewhere on the other end of the system, in another daemon, at least on the other programming language.
If you are making a project with a public API, then any third-party participant will be able to “sign” their code to your events (and process them), or vice versa - send you their own so that you process its events as requests (and get paid for it if you using a pay-per-use SAAS business model like Amazon).
Recall what we called the main disadvantage of classic large web projects - ever-increasing complexity, and therefore the cost of ownership, the cost of support and changes.
In the case of an event-based SOA architecture, the complexity is continuously decreasing, since “complex nodes” can be easily divided into independent services (in this case, demons), while the principles of the system remain unchanged, and its performance only increases.
Help me understand the principle of building SOA ESB architecture in PHP
I would be glad to articles on this topic, or code that demonstrates this architecture.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question