Best practice for running distributed microservices locally using electron?


#1

We have a distributed microservice based webapp. Has a handful of APIs (written in Go and .NET core which are both cross platform capable). Now we have a requirement to run the whole infrastructure offline as a desktop app.

I’ve seen at least one example where someone just packaged the binaries of their APIs with their electron app.
Then bootstrapped the APIs when electron started up. Then just called the APIs from their electron app using localhost.

Does this seem like a good approach? What other approaches have people taken?


#2

If you have server application and you want to run it on each computer separately good aproach is only to think of it since beggining and write it without http necessities i.e. whole as javascript node so you can acces APIs programatically, not trought http.