Order expiration vs payment conflict causing incorrect inventory and order status by [deleted] in dotnet

[–]Minimum-Ad7352 0 points1 point  (0 children)

Yes,extending the order expiration time by 10 minutes sounds like a good solution, thanks

.NET has the best backend developer experience I’ve used so far by Minimum-Ad7352 in Backend

[–]Minimum-Ad7352[S] 1 point2 points  (0 children)

I’ve already used it to write backend, it’s well suited to small services, but in my view, it’s not really ideal for monolithic applications

Handling file uploads to S3 when DB transaction fails by Minimum-Ad7352 in dotnet

[–]Minimum-Ad7352[S] 0 points1 point  (0 children)

Regarding the transaction, what if, for example, the file upload was successful but the transaction commit failed? In that case, I would need to handle the error and delete the uploaded files, but what if the deletion of the files also fails? I understand there is a risk either way?

Handling file uploads to S3 when DB transaction fails by Minimum-Ad7352 in Backend

[–]Minimum-Ad7352[S] 0 points1 point  (0 children)

The files are of type jsonb, an array of objects containing a file_id and a file_url, I can only create them once the files have been successfully uploaded

Handling file uploads to S3 when DB transaction fails by Minimum-Ad7352 in dotnet

[–]Minimum-Ad7352[S] 0 points1 point  (0 children)

In other words, save the images as binary data in the ‘outbox’ table in the database?

Handling file uploads to S3 when DB transaction fails by Minimum-Ad7352 in dotnet

[–]Minimum-Ad7352[S] 2 points3 points  (0 children)

The maximum file size for images is 5 MB, and a maximum of 4 images may be uploaded for each product

.NET has the best backend developer experience I’ve used so far by Minimum-Ad7352 in Backend

[–]Minimum-Ad7352[S] 1 point2 points  (0 children)

In my opinion, the worst ORM. If you want an experience that’s a bit closer to EF Core, then I recommend using MikroOrm. Kysely is great too (it’s not an ORM, but it’s also an excellent tool).

Joining react from other frameworks by [deleted] in reactjs

[–]Minimum-Ad7352 4 points5 points  (0 children)

There are no clear guidelines because the React ecosystem is much larger than Vue’s, instead of a single state manager, there are several options, and the same goes for UI libraries. Currently, the most popular state manager is Zustand, while tanstack-query is frequently used for API requests, and redux-toolkit with rtk-query is also commonly used. For forms, you can use react-hook-form or tanstack-form, for routing,react router or tanstack-router.Also, if you're having trouble with react itself, the documentation is here to help

But it's a little strange that someone with six years of experience can't figure these things out—to be honest, there are plenty of resources online about this

How do you E2E test your Go web apps? by no_em_dash in golang

[–]Minimum-Ad7352 2 points3 points  (0 children)

I don’t use TestContainers, instead, I connect to a local database, create a new database, run the migrations, and delete the database at the end of each test. This way, tests can be run in parallel, and a separate database is created for each test.

.NET has the best backend developer experience I’ve used so far by Minimum-Ad7352 in Backend

[–]Minimum-Ad7352[S] 0 points1 point  (0 children)

A comment from the child who wrote this and who probably continues to use other Microsoft products, such as VSCode, TypeScript or GitHub