Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clustering microservices #121

Closed
daffl opened this issue Mar 3, 2015 · 4 comments
Closed

Clustering microservices #121

daffl opened this issue Mar 3, 2015 · 4 comments
Milestone

Comments

@daffl
Copy link
Member

daffl commented Mar 3, 2015

1) Event propagation in a cluster

When two instance of the same application are running in different processes or on different machines created, updated, patched and removed service events should be propagated through the entire cluster. That way every connected client will also be notified of any change no matter where it happened.

This can be done by using a master (e.g. the cluster master) as the event dispatching hub and have all client services subscribe and emit events to that master event emitter which then dispatches it to all slaves. It might be necessary for different implementations e.g. the Cluster module and Redis (or other message queuing mechanisms).

2) Individual remote services

The other case is having different services distributed over different applications. Once #118 is resolved this should be simply possible by dropping in a remote service using any communication mechanism (e.g. websockets) like:

// todos.js
var feathers = require('feathers');
var app = feathers();
var wsClient = require('feathers-websocket-client');

app.use('/todos', todoService);
app.use('/users', wsClient('http://api.myapp.com/users'));
@daffl daffl added this to the 2.0.0 milestone Mar 11, 2015
@daffl
Copy link
Member Author

daffl commented Mar 20, 2015

I created feathers-mubsub for 1) which does event synchronization via MongoDB publish/subscribe.

@daffl daffl modified the milestones: 1.1.0, 2.0.0 Jun 22, 2015
@daffl
Copy link
Member Author

daffl commented Jun 22, 2015

  1. Can be solved with feathers-client and Allow to register remote services #136 so this issue can be closed in 1.1.

@daffl
Copy link
Member Author

daffl commented Jun 30, 2015

Closing this issue for now. Both points can be solved with existing 1.1 functionality and plugins.

@daffl daffl closed this as completed Jun 30, 2015
daffl added a commit that referenced this issue Aug 24, 2018
* Rename repository to use npm scope

* Update Codeclimate coverage token
daffl added a commit that referenced this issue Aug 25, 2018
@lock
Copy link

lock bot commented Feb 8, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue with a link to this issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant