开发者

Erlang e Thrift

I want to make a Windows Service using Erlang and Thrift.

The service will have a single thread listening in a port (socket communication) and send request to a worker's thread. The Windows Service have to response quickily (milisencods) and the throughput is mandatory. (requests per second) The workers thread will communicate each other. I think in Earlang to resolve this issue.

So i think erlang+thrift will work good. Am I ri开发者_C百科ght? Any suggestions?


Your solution is reasonable. To bring you up to speed i would suggest reading up on gen_server, supervisor, application. Thrift will generate stub files which by compiling will yield you a transport/acceptor. It's up to you to provide both the thrift api and the handler for this api. Moreover be advised not to synchronize alot between processes if you need fast response times (ie. dont design your solution around synchronizing calls)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜