Skip to content
This repository was archived by the owner on Sep 25, 2023. It is now read-only.

Pomelo's new features in version 0.6

py edited this page Aug 19, 2013 · 9 revisions

New features in Pomelo 0.6

Pomelo 0.6 imports a new structure called plugin, and we make globalChannel and zookeeper as plugins for pomelo. Meanwhile, we provide a new interactive command-line tool which is more convenient to do some maintaining operations than before. In addition, in order to enhance pomelo's safety, in pomelo 0.6 we import data signature and deal with illegal connections for hybridconnector. Other features include more detailed rpc log , max connections for frontend server, servers reconnect after disconnecting from master and pomelo-daemon.

Interactive command-line tool

Plugin

In order to give more convenience for developers to improve pomelo according to different custom demands, we creates plugin for pomelo. The detail information can refer to plugin.

Connections encryption

In pomelo 0.6, we provide data signature for hybridconnector. Firstly, the client generates rsa key pair and it would keep the private key; then the server would get the public key during the handshake phrase; thirdly, the client would send the message and the signature which is signed by the private key in the client side to the server; finally, the server would verify the signature with the public key from the client. The detail flow is as follow chart:

rsa

How to use

client javascript pomelo.init({ host:'127.0.0.1', port:3014, encrypt:true }, function() { // do something connected });


server
```javascript```
app.set('connectorConfig', {
 connector: pomelo.connectors.hybridconnector,
 heartbeat: 3,
 useDict: true,
 useProtobuf: true,
 useCrypto: true
});

illegal connections

Clone this wiki locally