All Questions
Tagged with architecture web-services
67
questions
1
vote
2
answers
173
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' ...
5
votes
2
answers
4k
views
What is the benefit of having separate web servers and application servers?
Most of the web applications that I have seen developed in my organisation , have the following components :
JS App (from browser) -> Web server -> Service(s)/Application server(s) -> ...
1
vote
1
answer
380
views
Architecting multiple codebases calling our public API + private API for first-party applications
Currently, we have the issue where we have two codebases (API & Website) calling the same database (along with some duplicate business logic) and we want to streamline this so all requests are ...
4
votes
3
answers
752
views
Why not use SQL to query an API instead of GraphQL?
nalzok posted an interesting question over a year ago: "Why not use SQL instead of GraphQL?".
Respondents seem to suggest three main problems:
One should not directly expose one's database ...
-1
votes
1
answer
367
views
How does a robust http server handle requests?
I have written many http(s) servers in Node.js and just take for granted that I can receive many requests and all IO operations are async. However, now I would like to try and implement an HTTP server ...
1
vote
1
answer
244
views
Sending an xml message as the payload to a web api
I have been tasked writing a "fire-and-forget" push web application, that can push high-volume XML messages (of several types) to multiple client endpoints over the internet (HTTPS). I don't need a ...
3
votes
1
answer
221
views
Alternative architecture for multi-instance, client-to-client message relay/broker
Research leads me to believe the most common architecture for a multi-instance (horizontally-scaling) message relay service (the typical example being an instant messenger/chat service) is to ...
1
vote
1
answer
1k
views
Should microservices manage their own media file logics?
I've heard that when you designing a microservice, the service should includes everything it needs to make them loose coupling instead of calling each other (services).
Based on this idea, should ...
42
votes
5
answers
15k
views
Why not use SQL instead of GraphQL?
Recently I learned about GraphQL which claims to be superior to RESTful. However, I started wondering why don't we simply put SQL statements into an HTTP GET request.
For example, in GraphQL I would ...
3
votes
1
answer
217
views
Does it make sense to authenticate a method that exposes non-sensitive data
We're developing an Angular application that consumes a web method exposing some information that is not sensitive, just bus seat promotions; the user enters where he wants to go and when and he will ...
2
votes
1
answer
125
views
Put functionality in same executable with command-line flag, or put it in a separate executable?
Background: I am working on a service where the domain logic exists as a library, and then the actual executable is built on a web framework as a wrapper around the domain logic library. There is no ...
23
votes
5
answers
24k
views
If a microservice architecture needs a separate database per microservice then it's too costly & unmanageable. Why do we even need it?
I read about microservices and it seems illogical to me to create a separate DB per service just to achieve isolation. I can achieve the same using only web services and a single database. Why do we ...
2
votes
1
answer
275
views
Which scenario is the best for service worker architecture?
We know about using service workers in modern web sites.
Consider a scenario back-end as node.js and SQL Server.
Data is loaded from central database to local customer web app (DB is about 700 MB) ...
1
vote
1
answer
159
views
Is there a place for connection string in SOA's desktop clients?
In the SOA architecture, with many services that implements data persistence as well as basic logic - is there even a place for connection strings in client Desktop applications? Or should everything ...
3
votes
2
answers
362
views
Parameters to Service-level classes: Primitives or domain-specific types?
We have an existing web service which is currently modeled as a single project, where the web/service/manager/model classes have gotten a bit confused and intermingled. As a refactoring, we're pulling ...