arpc

A small library for using AMQP message queues for RPC-like communication
Download

arpc Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Publisher Name:
  • selfsorted
  • Publisher web site:
  • http://code.google.com/u/@UBFWRlBTBRBDWAV7/

arpc Tags


arpc Description

A small library for using AMQP message queues for RPC-like communication arpc is a small Python library for using AMQP message queues for RPC-like communication.This is a small library for RPC (Remote Procedure Call) communication using AMQP. It uses amqplib (http://code.google.com/p/py-amqplib/), thus it uses blocking sockets, no threads or other asynchronous libs. However, there is a support for timeouts and "lazy responses". It's not meant to be a framework, like celery/kombu, only a library for easy setup of AMQP broker for RPC. It does not affect performance and does not introduce many abstractions or "magic", raw AMQP objects can be accessed directly if needed.A typical usage scenario is when a client is a webapp, and a server consists of a pool of "workers", possibly placed on many nodes (physical servers). The webapp calls a service, eg. "send_email", and one of the workers from the pool processes the request. For default messages (service arguments and responses) are JSON document, although it is not hardcoded. Requirements: · Python


arpc Related Software