Nitish, I don't think you really explained the problem you are having. There is nothing in go that prevents you from running multiple instances of an executable, hence creating multiple processes running the same program. You can simply open two console windows and start the same long running go executable in each. So without more information your question seems like a trivial "yes".
Of course. if your program (service) uses a shared resource, such as listening on a specific ip and port, then you could have a contention problem. But to solve that would require specifics of your service, and the problem you are having getting two of them to run at the same time. - Jake On Saturday, December 7, 2019 at 9:34:19 AM UTC-5, Nitish Saboo wrote: > > Hi Brian, > > I understand by running the service as containers is one route through > which we can achieve this. > My query is if I want to avoid that route , is there a way to achieve this > using Go code to define multiple instance and run them independently? > > Thanks, > Nitish > > On Sat, Dec 7, 2019 at 1:52 AM Brian Candler <b.ca...@pobox.com > <javascript:>> wrote: > >> Can you just run multiple instances of your program, each independently >> fetching messages from SQS? >> >> -- >> 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 golan...@googlegroups.com <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/golang-nuts/36c64d89-c8bf-4595-8fc3-fdc11a8b315b%40googlegroups.com >> >> <https://groups.google.com/d/msgid/golang-nuts/36c64d89-c8bf-4595-8fc3-fdc11a8b315b%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/6cb9a724-83ce-4440-8458-3f50182e4cc9%40googlegroups.com.