Questions tagged [client-server]
Client-server is a distributed software architecture where one layer runs on a server and processes request sent by another layer running on a different computer.
179 questions
-1
votes
4
answers
253
views
How do you design applications with client-based DBs?
Here's what a typical application that adopted the client-server architecture looks like:
A client-based frontend issues requests to a company backend server
The company backend server accepts the ...
0
votes
6
answers
1k
views
Can a web server accept a plain test file upload without additional server side scripting?
I've been trying for days to upload plain text files to a web server (both IIS and NGINX) via HTTP PUT/POST, from a C# desktop app, unsuccessfully
However, I'm no further along. I have had various ...
1
vote
0
answers
148
views
Design a server file transfer to client, polling or websocket?
I'm designing a file sending system from a server to many remote clients, around 5000; each file has only one recipient client. Files rarely exceed 10MB.
The server is published on the internet, the ...
-1
votes
1
answer
59
views
Looking for specific paragraph in RFC [closed]
Some decades ago working with IRC, I remember a paragraph of some RFC and now I'm looking for it. I don't remember it by memory, only a concept:
When it comes to communication between two services, ...
1
vote
1
answer
203
views
Client-Server-Architecture: Move computation logic from client to backend - Algorithm needs certain new values while running (User input) and continue
Background: At work I was tasked with developing a new demo web client to replace our Windows Form application in the future. Our back-end is developed in Java and works stateless as REST services. ...
0
votes
2
answers
293
views
Implement authorization logic also in frontend or send authorization info along with the resource?
We have an ongoing argument in our team. Please help. Here is the problem:
In our SPA web app, let's say we have a resource which can be edited by only those users who belong to the team of the user ...
1
vote
2
answers
125
views
How a VPS processes an incoming packet (conceptually)
I'm interested in understanding, conceptually (e.g., similar to how many of the concepts in networking are explained in textbooks like Tanenbaum's Computer Networks, or Kurose's Computer Networking), ...
0
votes
1
answer
218
views
Bubbling errors upstream in async message-based services
Imagine a simple set up of an API and a 2nd service, where the API pushes some msgs to the message queue and the service pulls them and processes them.
Now, if an error occurs while processing a msg, ...
2
votes
1
answer
336
views
Direct Database Access for Desktop GUI or via Application Server?
We have a scenario that is in a VERY tightly controlled industrial environment. This is all C# on Windows.
We gather data from different types of sources - sensors monitoring environmental data, ...
1
vote
1
answer
140
views
Contextual Implementation Overhead vs Redundancy
I have an application that has use cases relative to where it is used. A local client and server, where all the server data is in a single location and the client queries that server knowing it is ...
3
votes
0
answers
992
views
MVC vs Layered vs Client-Server
On this book (Software Architecture, 10th Edition by Ian Sommerville, ISBN: 9781292096131), the following architectural patterns are presented (Chapter 6, 6.3, p175):
MVC
Layered
Client-server
...
7
votes
3
answers
4k
views
How do desktop applications get notified of events over the internet?
I would like to display something on my desktop by tapping a button on my mobile app.
For example, there is a "show cat" button on my mobile app. When I tap that button, a new window should ...
-1
votes
2
answers
224
views
Multiplayer game architecture, should clients also maintain a Players list locally?
I am creating a multiplayer game and was wondering if only the server knows about the actual players in the game, or is this list sent to the clients too?
So for example the server knows about each ...
0
votes
2
answers
222
views
Where should I put rarely(if ever) updated datasets? Client or Server?
Assume we are building a Progressive Web App(as everyone does these days) that communicates with the server through a rest API. Now I need to show a list of world countries to the user to choose from.
...
0
votes
1
answer
57
views
Do I have to duplicate implementations on a client server udp application
I think the question is pretty straight forward but just to clarify, if the client and server are separate machines and need to be able to communicate with each other, does that mean that certain ...
0
votes
2
answers
341
views
Does it make sense to inform SPA frontend about business rules from the backend?
Let's say you have a user registration form in your frontend. In both, backend and frontend, password is valited so it has to match a set of requirements: more than 6 characters, no symbols, etc...
...
0
votes
2
answers
82
views
Do 1:1 mobile video call face filters belong on Client or Server?
I am drafting architecture for 1:1 video calling mobile app with face filters (face recognition).
I could use p2p e.g. WebRTC because more savings less complexity. However, continuous face rec during ...
1
vote
1
answer
533
views
What are the differences between server-server communication vs client-server communication
How does server-server communication compare to client-server communication?
I'm wondering if there are any performance benefits when putting a GraphQL layer in between my client-side app and my rest-...
1
vote
2
answers
263
views
Should the client handle unsolicited protocol events from the backend?
This is a very generic question not much related to any language/protocol.
I have a desktop application and a backend that communicate via TCP. Most protocol events are paired -- request/response. For ...
2
votes
1
answer
1k
views
An Example for Client - Server Architecture
In the text book software engineering by Sommerville , there is an example where he uses it to illustrate the famous type of software architecture "Client-Server Architecture", here it is :
...
5
votes
4
answers
7k
views
HTTP POST request status 200 vs 204 vs 404
Our POST API takes in an identifier (let's say deviceId) in order to compute the accuracy of the location we have stored for that device in a DB; the result of that compution is then saved in a ...
4
votes
3
answers
2k
views
What are the best practices for handling errors in multi-step actions between client and servers?
I have a website which uploads job postings to my API, there are multiple steps to doing this:
Upload a logo image to file storage.
Insert data about the job posting into a database.
Process a ...
0
votes
1
answer
256
views
Show a service's status to the user
Some design thoughts on an application that is mostly event driven using kubernetes and docker.
The application is a web based application, a single page one. It shows updates from the back-end such ...
1
vote
1
answer
704
views
client-server API architecture
Premise:
Language/Framework: C# / .NET + Core
I provide a desktop, multi-platform client-server API for HW control related purposes. The "Server" is communicating with multiple HW components....
1
vote
1
answer
188
views
Modernizing legacy application
We have an application that has served us and our clients well from some 20 years now. Pretty good track record but it's obviously showing it's age in some areas.
We are looking for advise and ...
0
votes
0
answers
37
views
Client - Server responsibility with respect to client specific resource utilization
If I have a repository, like a Dropbox server or a File sharing server, and if a client uses this repository for storing its data, from a design perspective, whose responsibility it is to calculate ...
1
vote
1
answer
88
views
System design : Implementing a common service process with a http server
I have a huge DB,and CalculateTasksFromDB() takes a long time (and lots of memory).
Once that method is done,there is a huge list of tasks.
There are worker processes in the system (at any point in ...
2
votes
0
answers
104
views
Client-Server Model between Smartphones via BLE?
I want to have a Client-Server-Model with Smartphones within a range of 50 meters inside an application. One of the Clients is supposed to be the "Host" and it's only job is to receive data from all ...
1
vote
1
answer
301
views
Server side rendering of third party updated html components
Say I am wanting to include a third party HTML component in my site...
I know that I can simply include a <script> tag to pull in the component on the client's side; however because I do not ...
64
votes
10
answers
13k
views
How do I mitigate a scenario where a user goes to pay, but the price is changed mid-request?
This is kind of similar to the Two Generals' Problem, but not quite. I think there is a name for it, but I just can't remember it right now.
I am working on my website's payment flow.
Scenario
...
1
vote
2
answers
479
views
OOP: centralized vs decentralized approach
Suppose you have a client-server architecture structured with a Client class that asynchronously implements the Send() and Receive() functions.
You also have a base Message class and several other ...
0
votes
3
answers
372
views
Which HTTP method to run an algorithm on input and return result?
I have a requirement to get input from a web app UI, send this input to the server who will run an algorithm on it. The web server will send back the output of the algorithm the the UI. Is an HTTP ...
2
votes
1
answer
222
views
Multiple clients of the same server - how to refactor while keeping the benefits of current architecture?
Background
I have a system that comprises of 3 components:
a web application that displays data and allows data manipulation by users (React)
a server application which serves the data to the web ...
9
votes
1
answer
12k
views
Do I actually need a message broker or are websockets enough?
The website I am building has a real-time messaging component. The backend is built with Flask and I have integrated Flask-SocketIO to handle Websocket connections when users are on the messaging page....
0
votes
0
answers
426
views
C++ client-server design
The context
I need to design a Client-Server(-Client) network in C++ that would allow an android application to communicate to a Raspberry Pi and back
I am running everything on linux environment(s) ...
0
votes
2
answers
214
views
Is peer-to-peer a variation of client-server architectural pattern?
According to Software Engineering: Theory and Practice book by Pfleeger and Atlee, Peer-to-peer architectural style is different than Client-Server architectural pattern. But in Mocrsoft's Microsoft ...
4
votes
2
answers
267
views
client / server division of responsibility
It makes sense to give the server applications as much responsibility as possible as to avoid having to rewrite logic across different types of clients.
In my case I am developing a data structure ...
5
votes
0
answers
222
views
Should custom Django Admin be separate from client endpoints?
I am currently in the process of creating a Django REST framework project for a client server web app. I would like to ask the following:
Should I write a custom admin if I want my app to be ...
-1
votes
2
answers
215
views
What does a proper server response look like? [closed]
tl;dr
Which is the best server response for an endpoint to get a user's age?
30 or {"age":30} or {"metadata":{"time":1561919615,"status":200},"age":30} or something else?
I am writing a server using ...
0
votes
1
answer
189
views
Why would an app ask another app to initiate closing a TCP connection?
I'm going to share an example where I noticed this and would like to know if there is a known pattern of why one would do this.
I have two instances of rsyslog running on different machines. One acts ...
0
votes
1
answer
4k
views
non blocking udp socket send receive
I'm writing some embedded Linux software where we have two microprocessors on the same PCB and they communicate with each other using UDP through a switch that is embedded on the PCB. Each application ...
0
votes
1
answer
225
views
Updating a distributed backend and keep track of compatible releases for Electron app + Webserver (PHP + MySQL )
Currently i'm working on a small platform with a simple client-server model and will soon go in a closed beta with a launching customer.
In essence it's an Electron application which is mostly used ...
2
votes
2
answers
798
views
Automatically update info on Desktop Client when there are changes in the server
Basically, I have a remote hosted server somewhere https://nnn.com
And then I have the NNN Desktop Client.
The Desktop Client shows information X.
I change information X from the remote hosted ...
2
votes
1
answer
273
views
Is there a name for a server/client relationship where the client doesn't request, but will reply to the server's requests?
Disclaimer: I'm sure this has been asked here before, but I haven't been able to find it.
I'm trying to create a system where one central computer (master) can initiate commands on other computers (...
0
votes
3
answers
343
views
How can a headless client securely know the API version of a multi-instance backend?
I'm working in a scenario where I have a backend (let's call it the server) and a frontend client app (let's call it the client).
The client is entirely headless, and can connect to any instance of ...
2
votes
1
answer
278
views
Server-client CLI messaging design
I'm prototyping some single machine, single user software with a client-server model; the first client for which will be a CLI, but I expect a (local) webapp/GUI to come later.
For the CLI, I'd like ...
0
votes
1
answer
136
views
Guidance for Client side
We have created software for Rugged and mobile devices, and it gets deployed on the device. Admin has a provision to send an update to those devices.
We use GCM or WNS for sending a notification to ...
2
votes
1
answer
3k
views
Ensuring reliable delivery of messages over websockets?
I am building a comet service which will push new data to the client on mobile devices. For this, I am using websockets to deliver messages to the client.
The problem I am facing here is the ...
0
votes
2
answers
596
views
What software/architecture patterns would fit into this client/server board game?
For the past few months I've been messing around with implementing my own version of a well-known board game. After much experimentation I've arrived on a few key points that describe my system:
The ...
1
vote
0
answers
180
views
Xamarin communication between devices, not using the internet
How would you go about if you would like to create something like:
You have let say 3 devices (can all be iOS or Android, a mix is not necessary)
One of the devices would act as a master and the other ...