Sign up or Log in
Are.na
aha hah
Info
—
View
ChannelsBlocks
Table
IndexAll
Sort
Recently updatedRecently created
...
by aha hah
0 blocks • 8 months ago

web science
by aha hah
18 blocks • 8 months ago
Principles for Microservice Design: Think IDEALS, Rather than SOLID
Principles for Microservice Design: Thi…
Microservices Pattern: API composition
Microservices Pattern: API composition
ROCA: Resource-oriented Client Architecture
ROCA: Resource-oriented Client Architec…
H Factor : Hypermedia Types
H Factor : Hypermedia Types
ALPS - Application-Level Profile Semantics
ALPS - Application-Level Profile Semant…

+15 more blocks
hypermedia web
by aha hah
42 blocks • 8 months ago
And the semantic profile mapping would look like this: [...]
4.7 Publishing Complete Vocabularies f…
4.15 Improving Reliability with Idempotent
Create
While the common practice is to use HTTP POST to create new resources in Web APIs, that is not the most reliable. In fact, when it comes to machine-to- machine interactions (e.g. no humans in the loop), using HTTP POST can be problematic because of the possibility of the “Lost Response” problem. What is needed is a solution to creating resources that is repeatable and reliable, even when the network connections themselves may be faulty.
Problem
When using HTTP POST to create new resources, it is possible to experience the “List Response” problem. For example, an API client sends a POST with a boy that transfers $500 from account A to account B and that API client never receivesanHTTPresponse.No200 OK,no400 Bad Request,no500 Server Error — nothing.
Now what is the client to do? Did the request ever make it to the server? Was there a server-side error that rejected the request? What if the request made it to theserverandwascompleted,butthe200 OKresponsegotdroppedonthe network? In that last case, repeating the request might result in executing the transfer twice.
How can we avoid the bad effects of the Lost Response problem when writing data to the service?

what if websites could kiss?

1
Nutshell! (BETA)
Nutshell! (BETA)
Clipboard Software
by Maxim Leyzerovich
2 blocks • 8 months ago

+39 more blocks
···
Join Are.na to follow aha hah
Sign upExplore