What is the best way to start a process on a port so that I can use a data structure (developed in Ruby) in other languages?
-
I developed a B+ tree Datastructure in ruby that performs well now i need to start some process on some port so that i can use for other language as well. wat is the best way to start a proccess onĀ some port. Do i need any HTTP server like webrick or ne
-
Answer:
If you want to make it easily available as a service, you can wrap it up it a http based web service. If it is a very simple you can use pure Rack (http://jasonseifer.com/2009/04/08/32-rack-resources-to-get-you-started) and load it up using any Rack-based web server such as Thin or Passenger. If you want something more sophisticated, such as a non-blocking high-concurrency async service, you can implement it over Eventmachine (http://20bits.com/articles/an-eventmachine-tutorial/). Dunno if that's what you wanted to know, though.
Fabio Akita at Quora Visit the source
Other answers
Use a cross-language serialization framework like protobuf, thrift or avro http://code.google.com/p/protobuf/ http://thrift.apache.org/ http://avro.apache.org/
Gene Chuang
Related Q & A:
- What's the best way to start a small clothing line business?Best solution by Yahoo! Answers
- What's the best way to get a job in a restaurant?Best solution by Yahoo! Answers
- What's the best way to start a blog?Best solution by Yahoo! Answers
- What is the best way to start a blog?Best solution by Yahoo! Answers
- What is the best way to negotiate a salary for a new position?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.