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.

Filter by
Sorted by
Tagged with
0 votes
6 answers
184 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 ...
jwilo's user avatar
  • 79
0 votes
0 answers
48 views

Single-threaded request-response type server architecture

I'm writing an internet service in Rust that works more or less like an HTTP-server, just without the HTTP part, and strictly over UDP. I also have a requirement to build it like an old-school game of ...
laggyfrog's user avatar
0 votes
0 answers
51 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 ...
ʞᴉɯ's user avatar
  • 119
-1 votes
1 answer
47 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, ...
Leandro Bardelli's user avatar
1 vote
1 answer
112 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. ...
drake76722's user avatar
0 votes
2 answers
126 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 ...
user3563059's user avatar
1 vote
2 answers
87 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), ...
user7088941's user avatar
0 votes
1 answer
139 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, ...
Milkncookiez's user avatar
2 votes
1 answer
180 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, ...
whopkinscom's user avatar
1 vote
1 answer
104 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 ...
FinalFortune's user avatar
3 votes
0 answers
676 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 ...
pmdci's user avatar
  • 169
7 votes
3 answers
3k 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 ...
LevelRin's user avatar
-1 votes
2 answers
182 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 ...
user2640145's user avatar
0 votes
2 answers
160 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. ...
Ali Rahimi's user avatar
0 votes
1 answer
37 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 ...
user avatar
0 votes
2 answers
292 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... ...
Héctor's user avatar
  • 727
0 votes
2 answers
64 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 ...
softcode's user avatar
  • 103
1 vote
1 answer
399 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-...
wheresmyspaceship's user avatar
1 vote
2 answers
188 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 ...
Dalamber's user avatar
  • 137
2 votes
1 answer
699 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 : ...
John adams's user avatar
4 votes
4 answers
5k 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 ...
CoderGuy's user avatar
  • 159
5 votes
3 answers
791 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 ...
AndyM's user avatar
  • 311
-1 votes
1 answer
159 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 ...
ring bearer's user avatar
1 vote
1 answer
593 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....
BoJl4apa's user avatar
1 vote
1 answer
139 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 ...
user44021's user avatar
0 votes
0 answers
30 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 ...
user1173240's user avatar
1 vote
1 answer
64 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 ...
yoni keren's user avatar
2 votes
0 answers
85 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 ...
ximix424's user avatar
1 vote
1 answer
215 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 ...
physicsboy's user avatar
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 ...
turnip's user avatar
  • 1,657
1 vote
2 answers
423 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 ...
m.iurato's user avatar
0 votes
3 answers
316 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 ...
restin84's user avatar
2 votes
1 answer
174 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 ...
Andrei-Marius Longhin's user avatar
9 votes
1 answer
10k 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....
turnip's user avatar
  • 1,657
0 votes
0 answers
337 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) ...
bem22's user avatar
  • 109
0 votes
2 answers
180 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 ...
Zi Fit's user avatar
  • 11
4 votes
2 answers
244 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 ...
Tagor's user avatar
  • 169
4 votes
0 answers
180 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 ...
 DJN's user avatar
  • 41
-1 votes
2 answers
190 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 ...
Evorlor's user avatar
  • 1,442
0 votes
1 answer
124 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 ...
TheMeaningfulEngineer's user avatar
0 votes
1 answer
3k 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 ...
Alpha's user avatar
  • 9
0 votes
1 answer
185 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 ...
user1692823's user avatar
2 votes
2 answers
533 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 ...
Rigo Sarmiento's user avatar
2 votes
1 answer
203 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 (...
Logarr's user avatar
  • 129
0 votes
3 answers
315 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 ...
user avatar
2 votes
1 answer
223 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 ...
OJFord's user avatar
  • 249
0 votes
1 answer
116 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 ...
satish's user avatar
  • 117
2 votes
1 answer
2k 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 ...
coderahul94's user avatar
0 votes
2 answers
487 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 ...
Thiatt's user avatar
  • 117
1 vote
0 answers
151 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 ...
Jester's user avatar
  • 119