Похожие чаты

Guys i Need some explenation please, i m a bit

confused. I have a front end where i m creating some objects to save. After created those object, i Need First to check if they're already exist (back end call). How can i do to not lose those object withous sending them to the back end and then re-send to the front end After the check?

3 ответов

8 просмотров

checksums?

Ajax

But I don't understand what are you trying to achieve by "check if they're already exist". I would just do one call always, just send objects and let backend decide whether they already exist and whether they should be stored, whatever. Basically, it's possible to have race condition between those two calls from frontend. That's why I would avoid doing something similar to what you've described.

Похожие вопросы

Обсуждают сегодня

Есть какой-нибудь для Delphi/FPC T*Compression(Decompression)Stream на базе LZ4/Zstd/любой другой быстрый(и хорошо сжимающий) алгоритм А ещё лучше в pure pascal А ещё лучше од...
notme
48
Ясн. Но я всеравно к кедам отношусь с опасением. Чисто субьективное кедосозерцание. Что касаемо "восторга изяшности кед" так и не вкурил, хотя много слышал, пока не поставил с...
Артем Записной
30
А чем вам питонисты не угодили?😂
.
79
type TObj = object procedure Init; virtual; end; TObj1 = object(TObj) procedure Init; override; end; procedure TObj1.Init; begin inherited; end; procedur...
Alexander 👋
29
Hey guys, did you see the new announcement about $Fun? 🔥
Filip Murphy
55
Такой вопросец - есть функция function MySuperDuperConcat(const a: array of AnsiString): AnsiString; Как мне в её теле сделать вот так? Result:=Concat(a); А не грустный вариан...
notme
15
[c8] what's the best looking best ux mobile wallet in crypto?
DiscordBridge
12
They keep hyping $FUN but where's the progress? 🙄
Noah Noure
23
Btw guys very stupid question but i haven't researchd so js asking you pros . Can ltc be traced too? Literally point to pint to the user? And getting the banks blocked ? Exch...
20
Can I deposit from Bingx-exchange to wazirx? Any problem? Admin
Crypto Alt Trader
16
Карта сайта