Shared Goruntime across different microservices written in GO

112 views
Skip to first unread message

Gladiators Squad

unread,
Sep 28, 2022, 2:21:37 PM9/28/22
to golang-nuts
Hi Everyone,

is there any way to separate go runtime from go binaries?. So that it can be shared across different micro services written in go. Instead of having separate go run time in each services.

Thanks.

Roland Müller

unread,
Sep 29, 2022, 1:02:46 AM9/29/22
to golang-nuts
Microservices are located in containers and making these services to use a common binary would break the basic idea of microservices.

Every service is a separate unit that shares only the absolute necessary things for collaboration with other services rather than its implementation.

BR,
Roland
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/736c26c4-643b-4f5c-836a-e8d9878a473bn%40googlegroups.com.
>

burak serdar

unread,
Sep 29, 2022, 1:21:51 AM9/29/22
to Roland Müller, golang-nuts
On Wed, Sep 28, 2022 at 11:02 PM Roland Müller <rol...@gmail.com> wrote:
Microservices are located in containers and making these services to use a common binary would break the basic idea of microservices.

Not necessarily. A single binary containing multiple services gives the flexibility to be run as a monolith, or as a set of microservices where each instance is only running a subset of the services. It makes deployment easier.
 

Every service is a separate unit that shares only the absolute necessary things for collaboration with other services rather than its implementation.

BR,
Roland

Am Mittwoch, 28. September 2022 schrieb Gladiators Squad <squadglad...@gmail.com>:
> Hi Everyone,
> is there any way to separate go runtime from go binaries?. So that it can be shared across different micro services written in go. Instead of having separate go run time in each services.


> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/736c26c4-643b-4f5c-836a-e8d9878a473bn%40googlegroups.com.
>

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages