2017 © Pedro Peláez
 

project react-mst

Performant asynchronous pure PHP Micro Service Transport using plain TCP layer based on ReactPHP

image

tatikoma/react-mst

Performant asynchronous pure PHP Micro Service Transport using plain TCP layer based on ReactPHP

  • Thursday, April 20, 2017
  • by Tatikoma
  • Repository
  • 1 Watchers
  • 0 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Performant asynchronous pure PHP Micro Service Transport using plain TCP layer based on ReactPHP., (*1)

Library not enough much functional and not recommended for production use. For production use need to provide some much functional like: logging, statistics, debug, unit tests, timeouts, better error handling, client authentication and tls encryption options. Possible to pass "factor" bigint option to server to pin worker thread for request., (*2)

This library provides clients and server:, (*3)

Server - listen tcp port, receive connections, fork workers and pass requests to workers. If worker closed connection, then restarts worker. If any error acquired during request server 'll return empty response., (*4)

Client (async promises and sync) - sends request to listening server and returns result. Failover class provides ability to resend request N times with specified interval, if request failed., (*5)

Installation:, (*6)

composer require tatikoma/react-mst:dev-master

For example usage start server.php from examples directory and then client-sync.php or/and client-async.php, (*7)

~ # cd examples
~/examples # $ php server.php &

~/examples # $ php client-sync.php 
Result: 5

~/examples # $ php client-async.php 
Result: 5

The Versions

20/04 2017

dev-master

9999999-dev

Performant asynchronous pure PHP Micro Service Transport using plain TCP layer based on ReactPHP

  Sources   Download

MIT

The Requires

 

by Avatar Tatikoma

reactphp micro service