Erlang/OTP Forums

Author Message

<  Erlang  ~  Mapping sessions to distributed processes

alanw
Posted: Wed Dec 24, 2008 3:14 am Reply with quote
Joined: 20 Nov 2008 Posts: 3
I've been learning Erlang and coded some fun stuff over the last few weeks. BTW - I found "Programming Erlang" on the shelf at Barnes and Noble in Southlake TX.

Anyway, I'm writing some code to handle message switching for a mainframe protocol that has a 24-bit session ID. I've already coded the basic protocol, but need to manage a session for each terminal, and handle about 200K simultaneous users. Each session will have a few KB of data.

It's natural to use a process for each session, as I can handle timeouts, etc in a very natural way. My problem is a clean way to map Session ID to/from Pid. Converting a string to an atom, i.e. session 0xF00BAA (hex) might map to the atom sess_f00baa. The problem is that I could easily run out of 1M atoms over the life of the system. I'd also like to distribute the processes across a cluster.

I need to be able to demultiplex messages from the sockets and route them to the process for that session. One thought is Mnesia to store the mappings and let it distribute the data in the cluster.

Anyway, it feels like a problem that somebody has already had to solve before, so pointers to ideas would be most welcome.

Thanks,
Alan.
View user's profile Send private message
wuji
Posted: Wed Sep 19, 2012 2:28 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
take effect for years, this method would not disable the the cheap replica *beep* the law quickly enough to appease the GOP and meet
Day One timeframe.Second, he could instruct his administration not to to [h1]cheap polo shirts[/h1] to enforce the law. This tactic is similar to Obama's
that his administration would no longer deport undocumented immigrants, "but "but cheap replica *beep* "but on steroids," Dorf said."It's not that he would be
one part of the act above another, he would be be authentic jordans be saying he wouldn't do any of it," Dorf said.Obama's
decision "was at the edge of what a president can can knockoff designer *beep* can do," he added. "What Romney would be proposing to
would go way beyond that."Romney's third and most "radical" option, option, real jordans option, Dorf said, would be to assert an independent duty
president to act on his own interpretation of the Constitution, Constitution, [h3]cheap replica *beep*[/h3] Constitution, despite the Supreme Court's ruling. Thomas Jefferson was the
View user's profile Send private message
dongdongwu
Posted: Wed Sep 19, 2012 2:33 am Reply with quote
User Joined: 19 Sep 2012 Posts: 236
Girls would refuse to even leave their replicas behind. specifically when the product beats the complete meaning of the Christian Louboutin men outlet; in conditions of good quality and detailing.If Cinderella was residing in your twenty primary century as opposed to the aged a single then there would not be any 'Happy actually after'. properly appears like girls nowadays are as well fond of the strong;Christian Louboutin Men Shoes to leave them in your center of nowhere.Christian Louboutin for men Shoes would arrive true handy being a excellent handbag using the glimpse and really feel belonging to the authentic but at a very much lesser price tag adding as very much as types picture in your process.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum