resgateio / resgate

A Realtime API Gateway used with NATS to build REST, real time, and RPC APIs, where all your clients are synchronized seamlessly.
https://resgate.io
MIT License
689 stars 67 forks source link

Support for NGS #63

Open jirenius opened 5 years ago

jirenius commented 5 years ago

Issue

Add support to connect Resgate to NGS.

autodidaddict commented 5 years ago

It looks like there's a solution to this but this branch hasn't been merged to master. I was about to start doing some experimentation with resgate and noticed that it didn't seem to support NATS 2.0 authentication (a requirement for my production scenario).

Is this blocked on something @jirenius ?

ColinSullivan1 commented 5 years ago

Perhaps it was blocked on the official release of NATS 2.0- NGS uses the same mechanism. The branch looks ready...

BTW, not required, but an example unit test can be found here.

jirenius commented 5 years ago

This branch wasn't merge because it didn't fully support NGS. One feature was still missing: the ability to know if a message might have been lost within a super-cluster (eg. through something like a super-cluster node disconnect event).

But since support for authentication credentials is a stand-alone feature, I will have it merged to develop right away.

@autodidaddict , I can mail you new binaries (which architecture?) with authentication support if needed, or post them for you on https://forum.resgate.io .

Thanks @ColinSullivan1 ! That helps when creating the unit tests for it.

jirenius commented 5 years ago

Created separate issue #108 for the credentials, and pulled it to develop in #109