L
L
leston2020-01-14 19:28:07
go
leston, 2020-01-14 19:28:07

I heard that go is not very suitable for writing services with a lot of business logic, what is your opinion?

I really want to hear a detailed answer why go is not suitable / suitable in this situation.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
A
Alexander Pavlyuk, 2020-01-14
@pav5000

Because go is a rather low-level language with a minimum of abstractions and no generics.

V
Vladimir Korotenko, 2020-01-14
@firedragon

May be

D
Dmitry Sviridov, 2020-01-14
@dimuska139

In general, it’s worth starting with the fact that the concept of “with a lot of business logic” is quite extensible. If we talk about microservices, then they usually have a lot of business logic and it doesn’t work out. Because if this starts to happen, then you should think about whether there is no extra responsibility in the microservice? Perhaps this service should be divided into smaller ones?
A bit from personal experience and not quite on the topic of the question, you never know it will come in handy. I was writing microservices in go and noticed the following shortcomings (for me personally):
Pros:

  1. Strong typing
  2. Compilation result - one binary
  3. Pretty interesting bug forwarding (many people don't like it, I liked it)
  4. High speed
  5. Low memory consumption
  6. There are flows

D
Dmitry Shitskov, 2020-01-14
@Zarom

Yes

R
rustler2000, 2020-01-14
@rustler2000

Not

U
uvelichitel, 2020-01-14
@uvelichitel

So Go is no longer suitable for anything.

A
Alexander Melentyev, 2020-01-18
@asmelentyev

It all depends on the developer. You can use Go, while implementing most of the business logic in SQL queries, for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question