I have devices in the field, running their own servicestack Api on an embedded device.
These devices connect to a internet gateway, and have their own channel there to communicate with the server by ServerEvents
Would it be possible to connect by some App or something else, to that gateway server, to perform API Requests that would to be redirected to this Embedded client in the field, make it produce a result, and answering this to the Gateway, wich will return it to the App client?
I currently already use something like this, but use a standard socket connection to a server, and serialize / deserialize gateway webserver requests using protobuff, and make the embedded client return a result, wich i then respond to the GUI client that asked it to the server in the first place.
I want to make it nicer.
- Use a Global Handler, to accept requests to the Gateway, using the Route’s that are configured in the EmbeddedClient’s Dto Library, and re-route them somehow.
- Use a reverse SSH tunnel to connect to the embedded client’s HTTP Api directly, and using some kind of URL Rewrite / PortForwarding system on a webserver.
I’d rather make it a ServiceStack Only party, but i dont know what’s be best angle…
Thanks for brainstorming with me!