What is Red-Black Tree DataStructure?

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

Was this solution helpful to you?

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:

Just Added Q & A:

Find solution

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.