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
336 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 ...
1 vote
1 answer
242 views
System design for tracking viewed posts and returning unseen posts
I came across this system design question and have been wondering what is a good approach. Requirement : We have a typical blog or a mini social media kind of website where users create "Posts&...
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 vote
1 answer
927 views
Is 10 KB a large amount of data to pass around each time a user makes an API call?
Each time a user of my APP / website interacts with the APP such that it makes an API call to the backend, the backend will make an API call to the mongoDB database to retrieve the document that holds ...
-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) ...
0 votes
2 answers
344 views
Is this service considered "an API"? Could it benefit from being Restful?
I'm confused about the meaning of API, specially in the context of REST. I'm thinking of one example. My company creates an application that runs on a server (the "backend"). (JavaScript in ...
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' ...
-1 votes
2 answers
491 views
How to deal with upsert PUT requests in a Spring Boot web application without crossing service and controller layers?
I've got a pretty simple web service that I need to add a PUT endpoint for that can handle upserts. This application is primarily a middleware layer to handle logging, caching and instrumentation in ...
0 votes
0 answers
612 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 ...
0 votes
2 answers
211 views
Scheduled Task in webservice
The requirement is to trigger certain tasks (API calls) periodically for each user. But the frequency (time between triggers) is not fixed, the user can change it. In my existing solution I maintain a ...
-1 votes
2 answers
349 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 vote
3 answers
309 views
Is it OK for a public web service to use a database user with rights to execute DDL statements to access its underlying, exclusive database?
I wrote a Java web service using Spring that handles REST calls from the Internet. The web service uses a Postgres database underneath to store, modify and read data. The Postgres database is used ...
-1 votes
1 answer
215 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 ...
2 votes
1 answer
3k views
How do you pass enums between microservices, without need to have copies of enums in different services?
I'm working with microservices, and I see an issue. There are two services, that transfer info between each other via jsons. Because of this, we have to store our enums in strings, and serialise-...
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 ...