If you're worried that they might grab tasks and lead to multiple executions, you may need to ensure idempotence in your code
Читать полностью…No need for a transaction,
You can create a property "state" a enum with possible values as
New
Inprogress
Completed
Error
Needtoretry
While querying in service check for task that are in state new
👋there is a microservice A that adds tasks to the database, there is a service B that takes tasks from the database to execute. Both can work simultaneously in a distributed format (several instances at once) on different machines. Do I need to worry about synchronizing access to the database (MS SQL on Azure) or is it synchronized out of the box?
Читать полностью…I've just tested espeak-ng... But its pronunciation of Mandarin is extremely wired...
That sounds like.... a robot.... a robot that made by an American..
I’ve tried writing a similar context class but for some reason the source generation doesn’t work. Is there any way to see error output from source generators?
Читать полностью…oh that's easy, with net8 you can build aspnet apps using AOT, even if only minimal APIs are supported right now, but to (de)serialize DTOs you normally need reflection, which won't work in that scenario
using builder.Services.ConfigureHttpJsonOptions()
you can configure the json options aspnet will use
this object has a list property called TypeInfoResolverChain
, you can just add your generated context there to let aspnet know about it
Reason behind no transaction is
Let's say service B tried to process the task xyz and it failed
In this case as per the transaction record's state will be updated as new again. I don't think it makes sense
but if I am doing 2 operations (get new task from db and then mark it as "inprogress" to prevent others get it) I should use transactions, right?
Читать полностью…Don't ask to ask !!
Just asking for "help" or "someone" won't get you any answer.
➡️ Directly ask your question with sufficient details so that people can immediately look into it and answer you if they know enough on that subject to help.
Right, we also need to build stuff we can come and replace once stakeholders realize how much it sucks 😎
Читать полностью…I am implementing google login in login logout but getting this error can anyone help me to solve this error of unhandled execption error
Читать полностью…even when not in AOT mode, using that you can skip the reflection step at app startup, which is nice
Читать полностью…nice, thank you very much
(i didn't understand the last paragraph but i can eventually dig by myself)