A simple scenario. The user registers through a form baked by some high-level structure (say, rails) and begins to chat. Chat is erlang-written and only authenticated users can participate. This means that every request (containing some session identifier) ββsent from the client side must be verified (authenticated) inside the erlang code in some way. Obviously, erlang does not know anything about registered users and must request a structure for this information.
The question is how to create a connection between erlang and the framework so as not to cause additional bottlenecks?
I was thinking about saving session identifiers in erlang as well. but the extra effort associated with synchronization (when new users log in) and session timeouts cause a headache.
source
share