Questions tagged [web-services]
Web services are software systems designed to support interoperable machine-to-machine interaction over a network.
608 questions
1 vote
1 answer
335 views
Which approach to specifying a database connection in a web API, is preferred?
Where I work, they have never implemented web APIs. At my previous job, which I left 11 years ago, I would write several web APIs to be used for applications, reports, etc. So when I came to this job ...
0 votes
0 answers
47 views
Webapp/Webserver architecture patterns for shared components
Motivation: I am building a webserver that is essentially a dashboard app. Users make requests and get analytics data and visualizations back. Multiple users can be in the same "workspace," ...
-1 votes
1 answer
115 views
How are first-time users signup requests authenticated?
I have a web service. When a user makes a request, traefik first redirects it to my users micro service, to pass through an authentication function. The token (or username+password, on first request) ...
1 vote
2 answers
204 views
Microservice Granularity: Should a service ever be broken into smaller services with a shared database?
I'm trying to understand the size of a micro service. Fake situation: Data is read 1,000,000 times for every write. So when you scale out you generally only care about scaling out for the 'GET' ...
0 votes
0 answers
611 views
Dealing with third party api rate limit when using multiple services
I have 1 api key that has a rate limit 1000req/1min. I would like to somehow use 50% of that limit in service 1 and 50% of that limit in service 2. Let's say they're just 2 separate processes using ...
-1 votes
2 answers
348 views
What are the benefits of HTTP statuses compared to custom JSON based protocol?
I am currently developing a service and a client and I use HTTP statuses for communicating certain info. For example, I have a POST /vikings endpoint that starts a long running process to create a ...
-1 votes
1 answer
214 views
How do I authenticate API request when I dont have credentials for the other end
I am developing an app in which I have to fetch data through company provided APIs. All the authentication is done on their end, so I don't have to build my own APIs. However, There are some ...
1 vote
2 answers
1k views
JWT logout: Sharing blacklisted invalid token among services
I am working on a microservices project involving 4 services - Auth Service, Service-A, Service-B and Service-C. All the services are implemented using Spring Boot. The Auth Service is responsible for ...