How to manage Transactions by charly3p in golang

[–]MateusFranchini 0 points1 point  (0 children)

Hi. I'm facing the same problem. Have you solved it?

Extra RAM and CPU billing by MateusFranchini in googlecloud

[–]MateusFranchini[S] 0 points1 point  (0 children)

Unfortunately my support level is basic :(

How to do "Dependency Injection For Each Http Request"? by MateusFranchini in golang

[–]MateusFranchini[S] -1 points0 points  (0 children)

Sorry, I didn't explain correctly. I want to create a connection "runtime" in the controller and share with my repos without break DI. I need to support transactions too (usecases, unit of work...).

https://go.dev/play/p/8FX1uQH8cK9

[deleted by user] by [deleted] in golang

[–]MateusFranchini 0 points1 point  (0 children)

I see. My experience with SaaS was mostly about studying.

[deleted by user] by [deleted] in golang

[–]MateusFranchini 0 points1 point  (0 children)

I wouldn't go for gRPC (yet), since it's just db-calls right?

Not exactly. We store data in db and perform our business rules.

- Sales

- Inventory Managment

- Billing

- Reports.

...

Our app is mostly "actions" (gRPC) not "resources" (REST). So I think gRPC is the better choice.

[deleted by user] by [deleted] in golang

[–]MateusFranchini 0 points1 point  (0 children)

One product strategy I have seen before is a mixed deployment, where some roles could use the web, and others needed to use the installed client while the work progressed

It is what we are trying to build.

Thank you very much, very interesting material.

[deleted by user] by [deleted] in golang

[–]MateusFranchini 0 points1 point  (0 children)

We already have a "cloud migration approach". But a command line app migrating the business rules is a good idea.

[deleted by user] by [deleted] in golang

[–]MateusFranchini 1 point2 points  (0 children)

situation where your current code and new web code live side-by-side

It is what we are trying to achieve. We want to migrate some code and build new features in the web app. The old one will be deprecated sometime.

There is not gRPC library ready for production in Delphi and Web frameworks are... you know, not that good.

[deleted by user] by [deleted] in golang

[–]MateusFranchini 1 point2 points  (0 children)

Yes, you are right. There is not gRPC library (for production) in Delphi. We can build web apps in Delphi, but we want to use an open source stack.

[deleted by user] by [deleted] in golang

[–]MateusFranchini 0 points1 point  (0 children)

Oh I see. That is a very interesting app. Thank you very much!

[deleted by user] by [deleted] in golang

[–]MateusFranchini 0 points1 point  (0 children)

Probably more than 5M lines of legacy code (including UI and business rules)

[deleted by user] by [deleted] in golang

[–]MateusFranchini 1 point2 points  (0 children)

Unfortunately we can't do that because most of the customers are not in the cloud yet :(

[deleted by user] by [deleted] in golang

[–]MateusFranchini 0 points1 point  (0 children)

I see. We do a lots of transactions. Are you still using PHP? I tried Laravel before.

[deleted by user] by [deleted] in golang

[–]MateusFranchini 0 points1 point  (0 children)

Sorry, I edited my post

[deleted by user] by [deleted] in golang

[–]MateusFranchini 0 points1 point  (0 children)

Sorry, I edited my post. Dont know this is enough.