orca


 

why real time

  • what happens right now?
    • polling server every few seconds
  • what happens if we have real-time?
    • NO MORE POLLING!!!
    • in stead, we can push updates
 

meet orca

a highly scalable real-time framework based on websocket and Tornado. It's compatible with any JSON API server.
 

WebSocket

"A persistent TCP connection between the client and the server and both parties can start sending data at any time. "
  
 

Tornado

Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections.

  1. written in python
  2. code base is concise

 

how it works

orca architecture


 

internal


how to integrate


class SampleBroker(Broker):    def __init__(self):        pass
def authorize(self, client_connection): return True

deck

By lang