New answers tagged api-design
3
votes
REST API with swappable backends
Your last 2 paragraphs are the way to go.
No real overhead, especially if you cache any client specific meta data associated with each call.
Most likely you will have to write a façade for each back ...
0
votes
Separate unidirectional streams vs single bidirectional stream
It's easier to specify a pair of uni-directional streams rather than a bi-directional stream. In theory, one needs to define the interactions between the function calls in both directions (both reads ...
0
votes
Separate unidirectional streams vs single bidirectional stream
Superfluously, unidirectional streams come with a smaller surface but bidirectional streams come with fewer objects to handle. In the end, this is mostly a matter of personal preference of broad ...
7
votes
Separate unidirectional streams vs single bidirectional stream
One use case for a bidirectional stream is when editing files. This would often require both reading and writing, and editing files is a quite common use case. I also believe most OSes exposes files ...
7
votes
Accepted
Separate unidirectional streams vs single bidirectional stream
In languages where the interface for a stream is inherently bidirectional (see C#'s Stream for example), this can lead to bugs when the wrong stream is accidentally used.
I agree. That's why there ...
3
votes
How to handle data when source of truth is through API
This is an extremely common problem when building any sort of distributed system. This is such a foundational problem for service-oriented architecture and microservices that no single canonical term ...
Top 50 recent answers are included
Related Tags
api-design × 1142rest × 405
api × 368
design × 125
web-api × 116
design-patterns × 86
java × 83
architecture × 76
c# × 62
microservices × 53
http × 47
json × 39
web-services × 35
python × 32
c++ × 31
object-oriented-design × 29
c × 25
javascript × 22
web-applications × 22
security × 21
database-design × 20
database × 19
programming-practices × 19
http-request × 19
object-oriented × 18