An open API service indexing awesome lists of open source software.

https://github.com/sitegui/asyncprotocol

An async, call-return-throw oriented protocol that sits above TCP
https://github.com/sitegui/asyncprotocol

Last synced: over 1 year ago
JSON representation

An async, call-return-throw oriented protocol that sits above TCP

Awesome Lists containing this project

README

          

# asyncProtocol
An async, call-return-throw oriented protocol that sits above TCP

## For what?
This protocol is aimed for applications that need to transmit a lot of structured data (like large arrays) from a client to a server.

The client can "call" a function in the server and get the result (or an exception).

## Details
This is a light-weight protocol that uses very little meta-data (when compared to JSON, for example). In order to do that, it requires that both endpoints (client and server) know the types of the arguments for each call/return/exception.

It's asynchronous protocol, so a client can send another call before all previous calls are answered. Also, the server doesn't need to answer the calls in order.

## API
Initially, the API will be implemented in JavaScript (for Node.js). Afterwards, the client-side will be ported to JavaScript for browsers (with a WebSocket gate).