All Questions
Tagged with architecture api-design
76
questions
98
votes
8
answers
79k
views
RESTFul: state changing actions
I am planning to build a RESTfull API but there are some architectural questions that are creating some problems in my head. Adding backend business logic to clients is an option that I would like to ...
58
votes
3
answers
45k
views
Should Microservices talk to each other?
I'm designing an application using Micro-Services and I'm unsure on the best mechanism to use to collect data from multiple services.
I believe there are two options:
Integrate an 'inter-service' ...
32
votes
4
answers
12k
views
Microservices and data storage
I'm considering moving a monolithic REST API to a microservice architecture, and I'm getting a bit confused about data storage.
As I see it, some of the benefits of microservices would be:
...
14
votes
7
answers
8k
views
How to architect user authentication from client applications?
I've been developing an application which will support many users. The thing is I'm unable to figure out, how to authenticate the client/user.
I'm building an app like http://quickblox.com/ where I'...
10
votes
2
answers
4k
views
Alert System Architecture
I would like to create a system which handles alert messages from various programs and can process those alerts to down-wind consumers via email. This would all be contained over one internal network. ...
9
votes
2
answers
957
views
How to design microservices with large number of joint entities outside of the domain border?
I'm working on breaking down a monolith application in smaller applications or microservices. Like always, sometimes it's easy and sometimes it's harder to identify domains and split those into ...
9
votes
2
answers
2k
views
Partitioning REST API resources into areas based on business domains
In a major application REST API that covers several related domains, does it make more sense to split resources into 'areas' based on the business domain they belong to or is it better to to maintain ...
6
votes
2
answers
3k
views
Shoud I directly return a string message or rather a i18n key when dealing with JSON api?
Suppose a rest api returning this json:
{
"status" : "fail",
"data" : { "title" : "A title is required" }
}
Since the client application would always adapt the error message, would it be ...
6
votes
1
answer
3k
views
A "Composite API" layer
We are giving services a complete overhaul at work: Swapping soap for rest, resculpting the domains to give better separation of concerns, etc.
These new services will be publicly available. During ...
5
votes
1
answer
1k
views
API design and storing custom queries from Db to cache
I was thinking about how people actually implement utilising results from a cache before a doing database lookup. When designing an API, should there always be a manual check to the cache first before ...
5
votes
1
answer
1k
views
How to design a repository pattern that can handle per-use-case relational data loading?
We're designing a major refactor in my company system's codebase. One of the refactor points, is the (actual) definition of the business logic/domain model. Right now, every repository in the codebase ...
5
votes
2
answers
1k
views
Should I use my own public API for my web interface?
I am designing an API with django and its rest framework (and I am already not sure if it worth the hassle to version it or not).
I totally know the iOS and Android apps will call the API, get a ...
5
votes
2
answers
671
views
Analytics Architecture for Multiple APIs
We’re building a platform of different APIs (every API is written by different team, different timezone).
We want to implement unified analytics for all of the APIs to have one data lake as a single ...
4
votes
2
answers
855
views
Where should HTTP calls resides in a layered architecture?
I have a client which depends on data fetching from two different domains.
Client fetches the data from Domain "A"'s API layer and Domain "A"'s Data Depends on Domain "B"
There is an implementation ...
4
votes
1
answer
3k
views
What are the best practices in public API vs internal only API being on the same service
I wanted to understand what are the best industry practices and the pros-cons in the following 2 choices:
A single service that serves internal only API and public API, vs
2 separate services - one ...