Skip to main content
The 2024 Developer Survey results are live! See the results

All 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 ...
Miro Svrtan's user avatar
  • 1,139
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' ...
KidCode's user avatar
  • 2,183
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: ...
penalosa's user avatar
  • 429
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'...
Alok Patel's user avatar
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. ...
Christopher's user avatar
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 ...
annemartijn's user avatar
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 ...
astreltsov's user avatar
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 ...
Mik378's user avatar
  • 3,888
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 ...
Josh C.'s user avatar
  • 223
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 ...
robertson's user avatar
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 ...
Christopher Francisco's user avatar
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 ...
Swann's user avatar
  • 151
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 ...
user2919190's user avatar
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 ...
Kalanamith's user avatar
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 ...
Kyuubi's user avatar
  • 141

15 30 50 per page
1
2 3 4 5 6