Questions tagged [server]

It refers to client-server model, where providers of a resource or service is called Server.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
74 views

Reducing Server Calls or Improving Server Response Times?

In the company I am working for, we have been told to keep server requests to a minimum. There are probably reasons for this specific to the company, but it made me wonder. Let's say I am building a ...
user avatar
  • 107
0 votes
0 answers
63 views

Prevent users from creating "global" database connections for a forking general purpose server?

I've created a general purpose scalable server in PHP. It's scalable in that the main process merely listens for incoming connections and immediately distributes them to forked child processes which ...
user avatar
-3 votes
1 answer
45 views

Ways & Methods switch between MongoDB Database after selecting a country. (MERNG)

I have a concept in which a user selects a country, which will either filter or go to that database; I was thinking of alternatives or options that would help in the process. These are my first plans ...
user avatar
0 votes
1 answer
114 views

Ideal REST API for long stateless computation?

We have to compute a schedule for a set of students and teachers in a school. The program takes a large amount of data. The time it takes to compute a schedule for a given input cannot be determined. ...
user avatar
  • 103
0 votes
1 answer
159 views

How to manage a distributed application?

I have a distributed application backed by a distributed database. (Distributed here means running across multiple hosts with one or more instances on each host). Application has several toolings ...
user avatar
-1 votes
1 answer
87 views

Choosing between frontend and backend

I am new to web development. After reading some posts, such as this and this, I am still not sure which parts of my application belong to backend. To make things simple, I will use a mock example. The ...
user avatar
0 votes
1 answer
94 views

Does it make sense to spawn request driven jobs in a thread or process?

I've developed a large application that performs jobs, such that it receives input x and outputs y. For this application, speed is the top priority. The application is capable of running concurrently. ...
user avatar
  • 117
0 votes
2 answers
183 views

Taking load off of Rest API with Cloudflare Cache?

I have a server running on AWS which serves data, that is not changing too often (think about a CMS system) to multiple clients. This service is critical for most of the client apps, thus I want to ...
user avatar
  • 109
0 votes
3 answers
172 views

Sysadmin password storing

I'm quite unexperienced in the sysadmin area. Now I'm facing the responsability of managing two (remote) servers. I'm working in an informal organization. So I have passwords for the OS's users, ...
user avatar
1 vote
3 answers
123 views

How should I manage secrets for applications deployed on servers I do not control?

Problem description I have an IoT app that provides a server backend and browser UI client for interfacing with proprietary control systems. Some deployments of this application will require that the ...
user avatar
-3 votes
1 answer
85 views

Serving large file (dozens of GB) to client from a server-side query to the Azure SQL database?

I have an SQL database in Azure that is ~4.5 TB / 150 million rows worth of data. Users will need to query this database for large sets of data. Right now, I am having users submit their requests ...
user avatar
0 votes
1 answer
148 views

How to let backend APIs communicate with each other?

I'm building a complicated frontend-backend application of which both the frontend and backend should be highly scalable and reusable. To serve these two requirements, I'm splitting the backend into ...
user avatar
1 vote
3 answers
207 views

How to make Request from Client to Server more evenly distributed (over 24 hrs)

I'm trying to write a new API that can support many devices. There will be at least 50k devices in the beginning that will connect to the server using an HTTP API on a daily basis to receive updates. ...
user avatar
  • 146
-4 votes
2 answers
119 views

Does server farm change the design of the server program?

In The Linux Programming Interface Sec 60.4, it talks about design a server that handles multiple requests using multiple processes or threads, or pools of processes or threads. Then it discusses ...
user avatar
  • 5,271
1 vote
2 answers
276 views

Understanding the importance of Gunicorn and Nginx for Django web development

I'm entirely uninitiated to the world of web development, and only have a tentative grasp on Django and web development through the test server it works through. From the guide I'm reading, the author ...
user avatar
  • 113
1 vote
1 answer
471 views

Token based authentication to multiple API servers

We have a Web server (which also does authentication and authorization) that manages, via an API, one or more servers that contain highly sensitive data. In the below architecture diagram, we manage ...
user avatar
45 votes
4 answers
9k views

Is cloud computing mainly just a marketing term?

I understand the concept of cloud computing, but I'm curious why the term has become so exhausted the past several years. Servers have been around for a long time, and I fail to see how this is any ...
user avatar
  • 579
6 votes
2 answers
233 views

How do services distribute their servers around the globe while maintaining their whole dataset intact?

I've always been curious on how services such as google/youtube have multiple datacenters across the globe to serve requests faster to users while keeping their whole dataset structure intact. There ...
user avatar
-3 votes
2 answers
53 views

How should I handle a scalability problem during routing my requests from server?

I have faced a problem with the initial design of my system where sensitive information was being sent to the front-end and front-end was responsible for calling 3rd party APIs. As you have probably ...
user avatar
  • 103
2 votes
1 answer
141 views

Serverless game server architecture

First post on the software engineering stack exchange, I hope the question fits the purpose of this sub. I'm building a serverless game server with the following architecture and was wondering if ...
user avatar
  • 129
0 votes
1 answer
152 views

Using same flask server for HTTP and Websockets

I have a simple app which has the following architecture: front-end api/ back-end server.py api/ utils/ The app is already using http based server which is started/configured in the ...
user avatar
0 votes
2 answers
162 views

Should a server call services on behalf of the user?

This is a general software architecture related question. This question is not related to a specifc programming language or service. The question is: "Should a server do things on behalf of the user ...
user avatar
2 votes
2 answers
101 views

Server-side script to handle many near-simultaneous incoming XMLHttpRequests

I am building my own analytics platform, which I want to work like this... A JS script in each of my webpages collects data about users' clicking behaviours and sends that data to a PHP (or other ...
user avatar
  • 31
4 votes
2 answers
224 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 ...
user avatar
  • 169
-1 votes
2 answers
181 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 ...
user avatar
  • 1,406
0 votes
0 answers
24 views

Building an API for long distance customers with IOS App, single or multiple calls?

I am in the process of building an API in Laravel and my server is currently stored in the UK. Now I have read some of the posts relating to this topic on Stack but I am still a little unsure as to ...
user avatar
1 vote
1 answer
53 views

Whose part of the system should handle malformed messages? [closed]

Currently we have a POS (point of sale) application that should call a remote service to declare each new sale. Considering that the remote service could be not reachable we have also a local db at ...
user avatar
  • 221
1 vote
1 answer
316 views

Architectural principles for creating a large-scale email server that doesn't get blacklisted

I am considering what it takes to implement an email server. Google Cloud basically doesn't allow you to send emails at scale (they block the email ports pretty much), though it sounds like you could ...
user avatar
0 votes
0 answers
128 views

Implementation event-based game server architecture

I'm trying to develop a game server in Netty using an event-based approach where incoming events are dispatched to the correct game rooms, but I'm having some trouble with managing my world state. My ...
user avatar
  • 113
1 vote
3 answers
92 views

Do I need to 'deploy' my web project when I can just keep a recent clone of the Master-branch in public_html?

We have git installed on our webserver (via cpanel), but unfortunately no CI- / Deployment-Tools. Would it be good practice just initialise our repository in /public_html/ and push our local Dev-...
user avatar
  • 111
1 vote
2 answers
282 views

Notify Millions of subscribers at the same time(or with min. delay) in C++?

I'm working on a problem, in which i have some real time weather information of different cities through out the world. I'm exposing subscribe function to interested people/clients, with input:- ...
user avatar
1 vote
1 answer
273 views

Why do we need nginx server on top of linux server?

Recently, I tried to deploy a web project to a virtual machine. I used the Ubuntu server as my OS, but while following along some tutorials I came to the fact which was very confusing for the beginner ...
user avatar
  • 113
2 votes
2 answers
281 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 ...
user avatar
1 vote
0 answers
51 views

How do I choose the right Websocket API

I'm doing a project where I have to control a live DALI controller and I'm sending data from the website to the controller with Websocket. How do I know what Websocket to use? At the moment I'm ...
user avatar
0 votes
1 answer
78 views

My local server is getting close to maximum resources, I want to add another server.

So, first let me explain my current setup. I have an unmanaged ethernet switch which is connected to my intel nuc (server A) and an external had drive. Server A is running: Ubuntu Docker Gitlab ...
user avatar
0 votes
1 answer
151 views

Should worker processes accept() or should they get data from the master process?

I'm trying to write an application server in python. I have a master process and multiple worker processes created from the master using fork(). I have two approaches in mind about how the workers ...
user avatar
1 vote
1 answer
47 views

Doing operations securily from an Android application into a Server

I have come up with a problem in my development and I have searched for correct solutions but have not found any. I am developing an application which lets users login with username and password. ...
user avatar
0 votes
1 answer
234 views

How to efficiently solve "close" players/items in an online game without iterating through all of them?

I have an online game server that works as follows: Once a player connects, he is in one of predefined sessions (consider them physical location, e.g. Island, Underground location, etc.). Then ...
user avatar
  • 4,878
0 votes
1 answer
113 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 ...
user avatar
  • 117
2 votes
2 answers
5k views

How to integration test server failures (http 500)

Like in the title: how do you integration-test server failures that return 500 HTTP responses? For example: There's a server with a /save endpoint that accepts files on POST and saves it into the ...
user avatar
  • 87
2 votes
1 answer
515 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 ...
user avatar
1 vote
1 answer
168 views

Theoretical: How Do Servers Handle Requests With No Spare Memory?

I'm trying to understand how servers handle many requests when they start to run out of RAM. Let's say you have a server with 1GB of idle RAM. Let's pretend it was bombarded with 1024 requests in 1 ...
user avatar
2 votes
6 answers
1k views

Wait for file(s) in a remote directory to be created, then transfer the file(s) immediately to local computer

I'm wondering what the best practice would be for the following task: I start a program on a remote node, which will generate subsequently new files in a publicly accessable folder. Whenever a new ...
user avatar
  • 129
2 votes
1 answer
53 views

Balancer that delegates requests to servers and problem with Websockets

Lets have an application that has real-time chat feature. The chat requires websockets in order to function real-time. Now imagine we have "balancer" and 3 application servers. Instance of ...
user avatar
  • 181
1 vote
1 answer
5k views

Pros and Cons, use REST api vs querying directly to database with different client platforms [closed]

We want to figured out, whats are the pros and cons, when you use a REST api vs querying directly to a database, if you have different client platforms (Web-Application, Android, iOS). Edit: I know ...
user avatar
3 votes
1 answer
299 views

Race conditions in client synchronization

I have a web app whose server creates a Client for each websocket connection. A Client acts as an intermediary between the websocket connection and a single instance of a Hub. The Hub maintains a set ...
user avatar
  • 131
0 votes
2 answers
138 views

Long response times vs. concurrency issues on a multithreaded web server

A class with a slow initialization used to process a request leads to long response times. But the actual method used is quite fast. Should the class be static, I guess it would need to process a ...
user avatar
  • 327
2 votes
3 answers
116 views

Should I be worried about having too many services?

I'm making an online game and it has a server handling smaller game server. We call it "MasterServer". This MasterServer listens to commands from both TCP and HTTP and answers to them using its own ...
user avatar
  • 705
0 votes
1 answer
354 views

Watermark on Video implementation , Server or Client

Below is the context, Right now i'm developing an android application, which will allow the user to upload the video and image to the server. I want to allow the users(his friends) to download the ...
user avatar
  • 361
2 votes
1 answer
196 views

Keeping a JSON copy of a database

I'm new to server-side programming and I'm building a small "test" web application in NodeJS. Each time the clients need to view data from the PostgreSQL database, NodeJS will execute a "SELECT" query ...
user avatar

1
2 3 4 5