M
M
Mikhail Bazhenov2014-01-10 09:19:10
Software design
Mikhail Bazhenov, 2014-01-10 09:19:10

How to implement multi-agent architecture in node.js?

Hello!
There is a small question of how it is possible to implement such an architecture for an example:
1. Core
2. Ads
3. Personal account
All three points are different node.js processes and hang on different ports, Our core hangs at 80 and acts as a router and implements a small functionality like authorization, registration, page.
So if we follow the url www.site.ru/adverts/ then our request must go through the core and get into the Ads service.
All user data is stored in the database as a session.
How can req be redirected?
What got me interested in such an architecture, complete independence of layers + more convenient support, etc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2014-01-10
@ScorpLeX

In theory, it is possible to transfer data from the "core" to forks for processing, but this will not make it any easier.
You just need a path system, the easiest way would be to take some kind of framework ( for example ) where there is already a router.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question