socket server in ruby

J

John Merlino

I want to create a socket server that listens for incoming UDP packets
which come in as hexidecimal values, which means they must be
converted into ASCII format in ruby. Some of those hex values
represent multi-byte characters. So the socket server needs to be
listening for incoming connections, and there is over 10,000 packets
coming in throughout the day. Then it needs to do the conversion from
binary, and then it needs to update a postgresql database with the
decoded values. Would their be a significant performance hit doing
this in ruby? Or would this situation be preferred to be handled in
python or c++?
 
S

Simon Krahnke

* John Merlino said:
I want to create a socket server that listens for incoming UDP packets
which come in as hexidecimal values, which means they must be
converted into ASCII format in ruby. Some of those hex values
represent multi-byte characters.

I'm not really sure what you mean by that. Is there stream of
hexadecimal coming that needs to be decoded into bytes and then
interpreted UTF-8 or what?
So the socket server needs to be
listening for incoming connections,

There is no such thing as a UDP connection.
and there is over 10,000 packets coming in throughout the day.

That doesn't sound like much. 10,000/d is 1 every 8.64 seconds.
Then it needs to do the conversion from
binary, and then it needs to update a postgresql database with the
decoded values. Would their be a significant performance hit doing
this in ruby? Or would this situation be preferred to be handled in
python or c++?

Something in a Ruby on Rails Framework should be able to do that. Why do
you think python would be faster?

mfg, simon .... l
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top