feathersjs-ecosystem / feathers-sync

Synchronize service events between Feathers application instances
MIT License
222 stars 41 forks source link

Little question i am Missing Something? #68

Closed frank-dspeed closed 6 years ago

frank-dspeed commented 6 years ago

This only shares events right? so the same events that i get when i connect with a client to each instance and listen on it?

I am just wondering because i want to code a remote socket based api for a fingerprint reader and feathers looks like it will not fit ??? i need to send commands and get callbacks from diffrent fingerprinters on diffrent devices.

ideal would be all the fingerprinters and clients connect to a single server and using the fingerprint service like emit cmd ... callback but i don't get how to do that

daffl commented 6 years ago

You don't have to worry about feathers-sync if you are running only one instance (server) of the application.

I'd start with setting up a single server, have all readers connect to it and send their data as normal socket requests.

frank-dspeed commented 6 years ago

i wanted to run a server on every fingerprint device controller and then route the commands :) i will now do the following

@daffl i go a totall new way because the device need to process a lot of commands like enroll 1 and wait and 2 and so on .......

i will now go with a database based async process que for the devices so i have better status reporting also i will use feathers to emit the result back and for placing the jobs !

daffl commented 6 years ago

Makes sense. Closing this one then.