Releases: amphp/cluster
2.0.1
2.0.0
Initial stable release compatible with AMPHP v3 🎉 (after a much longer beta than intended 😊).
As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise have been replaced with ResolutionType.
The tools available in this library have been expanded beyond that of version 1. A component to request server sockets from a parent process is now included as part of the public API, as well as a pair of components to transfer client sockets between processes.
New Features
- Added
ServerSocketPipeFactoryandServerSocketPipeProviderfor requesting and providing server sockets to a child process from a parent process (Documentation). - Added
ClientSocketReceivePipeandClientSocketSendPipefor transferring client sockets and related data between processes (Documentation).
Changes
Cluster::getId()has been renamed toCluster::getContextId(), returning the worker ID or null if not running as a cluster worker.Cluster::listen()has been replaced withCluster::getServerSocketFactory(), which returns an instance ofAmp\Socket\SocketServerFactorythat may be used to create a server or passed to components requiring an instance of that interface.Cluster::onMessage()andCluster::send()has been replaced withCluster::getChannel(), returning an instance ofAmp\Sync\Channelwhich may be used to send and receive messages from the cluster watcher.Cluster::onTerminate()has been replaced withCluster::awaitTermination()which awaits a signal from the cluster watch to stop.Watcherhas been renamed toClusterWatcher.Watcher::onMessage()has been replaced withClusterWatcher::getMessageIterator(), returning a concurrent iterator ofClusterWorkerMessageobjects.
2.0.0 Beta 1
Initial release compatible with AMPHP v3.
As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise have been replaced with ResolutionType.
The tools available in this library have been expanded beyond that of version 1. A component to request server sockets from a parent process is now included as part of the public API, as well as a pair of components to transfer client sockets between processes.
New Features
- Added
ServerSocketPipeFactoryandServerSocketPipeProviderfor requesting and providing server sockets to a child process from a parent process (Documentation). - Added
ClientSocketReceivePipeandClientSocketSendPipefor transferring client sockets and related data between processes (Documentation).
Changes
Cluster::getId()has been renamed toCluster::getContextId(), returning the worker ID or null if not running as a cluster worker.Cluster::listen()has been replaced withCluster::getServerSocketFactory(), which returns an instance ofAmp\Socket\SocketServerFactorythat may be used to create a server or passed to components requiring an instance of that interface.Cluster::onMessage()andCluster::send()has been replaced withCluster::getChannel(), returning an instance ofAmp\Sync\Channelwhich may be used to send and receive messages from the cluster watcher.Cluster::onTerminate()has been replaced withCluster::awaitTermination()which awaits a signal from the cluster watch to stop.Watcherhas been renamed toClusterWatcher.Watcher::onMessage()has been replaced withClusterWatcher::getMessageIterator(), returning a concurrent iterator ofClusterWorkerMessageobjects.
1.0.1
Update to use amphp/file v2.x.
1.0.0
1.0.0 RC1
Initial release candidate.
Note: This is a pre-release, there might be breaking changes in the final stable version.