Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [server]

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

1
vote
1answer
79 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 ...
0
votes
0answers
35 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 ...
0
votes
1answer
70 views

web-app using nginx and node - which is the web-server?

I have a web-application using nginx as a reverse-proxy and using the express framework as my backend in node.js. I am confused which is the web server, maybe both or maybe it's a grey-zone in my case....
1
vote
3answers
80 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-...
1
vote
2answers
252 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:- ...
0
votes
1answer
100 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 ...
1
vote
1answer
46 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 ...
1
vote
0answers
34 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 ...
0
votes
1answer
73 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 ...
1
vote
0answers
75 views

Difference between API server and Gateway

I'm working on a VOIP startup currently and deciding which software stack will be best. I'm doing a lot of research of how other people do it, like Discord. It's really hard to make some of these ...
0
votes
1answer
41 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 ...
1
vote
1answer
42 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. ...
0
votes
1answer
219 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 ...
0
votes
1answer
108 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
2answers
437 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 ...
2
votes
0answers
171 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 ...
1
vote
1answer
143 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 ...
2
votes
6answers
213 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 ...
2
votes
1answer
48 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 ...
0
votes
1answer
1k 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 ...
2
votes
1answer
84 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 ...
0
votes
2answers
76 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 ...
2
votes
3answers
110 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 ...
0
votes
1answer
88 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 ...
2
votes
1answer
157 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 ...
7
votes
2answers
415 views

Do CPU Intensive/ Data Intensive Tasks belong on the Server

I'm new to server development, and I'm trying to figure out where the division of responsibilities is for Data intensive tasks, I'm using Node.js. As an example say I'm making a Single Page ...
-5
votes
1answer
152 views

Performance comparison of Legacy VB6 Software vs Node.js and React.js

My company just started a new production management software by using serial communication to scales. My company has already developed the software using VB6 in 2006 and keep using that outdated ...
-4
votes
1answer
700 views

What happens if multiple users send http requests to the server concurrently? [closed]

So basically, it is a web server that is hosting a php project. The project accepts some inputs from the users and send them to the server via ajax for validation each time the check button is clicked....
-2
votes
1answer
57 views

Hardlinking Git Repo for Deployment: Possible Downsides?

I've got a production server I'm managing right now, but it's becoming incredibly inefficient to either: SSH into the remote server, and develop server-side Develop on my local machine and transfer ...
0
votes
1answer
2k views

Client Side or Server Side Calculations?

I was wondering about client side vs server side calculations regarding websites that provide some convenience type service. For example, an online website where you input a certain date and the ...
3
votes
4answers
450 views

Is storing files of up to 50MB in size in a database for use by multiple servers a reasonable idea? Example inside

I'm in the process of designing a server responsible for serving files that are between 10MB and 50MB in size. Initially we will run two instances of the server (lets call them fs1 and fs2), with ...
-2
votes
1answer
181 views

Linux Server Hosting through Cloudflare [closed]

I hosted a hobby NodeJS Server from my Linux and all is fine by accessing my direct IP. Because I find this ugly and also less secure, I decided to route my domain which is set to Cloudflare to my IP....
2
votes
2answers
864 views

What is the right approach to save user agent info during login to web / app?

As you know Facebook saves login sessions and we can see them in settings where we've logged in. Now, they show IP address, Phone name (if logged in with phone) and App name in the phone and Browser ...
3
votes
1answer
162 views

How do websites/apps deal with so many people online at once? [closed]

I’ve been wondering about this for a little bit, but I couldn’t find much info on Google. What do big websites like YouTube do to manage all the traffic they get without their website slowing down? ...
4
votes
2answers
103 views

Running expensive computation on single server

I'm building a website that lets a user pay for a service that automatically does some video encoding for them. Encoding takes several minutes. A naive solution would run each encoding job ...
3
votes
1answer
451 views

Confused how to design app server architecture

I'm developing a desktop JavaFX application that connects to a local WildFly app server via the REST protocol. WildFly describes itself as an application runtime that helps you build amazing ...
2
votes
1answer
167 views

Software architecture of IoT hardware controller program with embedded HTTP server

Just trying to design an architecture/class relations for my current C++ project in the IoT field. The program itself (controller) controls various hardware via an arm-based device. I intend to use ...
-3
votes
1answer
255 views

Where is better to calculate the total sum, back end or front end?

If I have a list of products and I need the total price of those products. Where is better to calculate the total sum, back end or front end? Front end React Back end PHP Table that shows Invoices ...
-1
votes
1answer
105 views

How to secure the server-to-server comunication between two endpoints?

Currently, I'm using these methods on HTTPS protocol: SSL to secure the communication between two endpoints CheckSum to generate a hash token that only the two endpoints can generate Is there any ...
4
votes
2answers
715 views

Design for client-server synchronisation

Background I am working on improving the backend design for a video game. The game is live and working fine, but we want to improve various things. As a video game studio, we often do events which ...
3
votes
1answer
99 views

Meaningful response to the user after his uploaded CSV was processed?

A user uploads a CSV to the server to be inserted into the database and I would like to return a meaningful response to this user. My thoughts : { inserted : x records discarded : y records } ...
0
votes
1answer
46 views

What criterias should I use to determine if a new feature of my app should be a new area or a new app? [closed]

I'm building a ASP.NET MVC Core App. I would like to add 2 new features: A new area for Admins and An Web-API for restful services. I was wondering if the Web-API and the Admin area should be new "...
0
votes
1answer
70 views

Should server IPs be stored in a repository?

Say, a gateway server keeps IPs to a main server and a database in a config file. This makes it easier to change the IPs without having to recompile. Does it really matter if this file gets committed? ...
-1
votes
1answer
46 views

node server structure and technologies - support continuous and high volume (amount, not size) data transfare

I'm having trouble planning the structure of my server side workflow and the technologies I should use. The basic structure and tasks are: Now, things to consider: 1.the server listens to multiple "...
26
votes
7answers
7k views

Is it best practice to deploy a project to the server file by file manually?

The company I work for now doesn't implement continuous delivery yet. We still deploy the project manually to server, file by file. Which is best practice: to manually deploy one project artifact for ...
0
votes
2answers
65 views

How should I store a list of file names for a webapp?

I want to be able to call on a list of files that are being processed by the server. The problem is, I want to call them on a web app (think React) whenever a user does something. i.e. a list of all ...
2
votes
1answer
572 views

Scaling tcp/ip socket server applications

I have been trying to understand how one would scale an application utilizing tcp/ip sockets for client server communication. For example in the simple diagram below: +------------+ | ...
2
votes
3answers
1k views

Is it bad practice for my backend to call 3rd party API's synchronously when processing a request?

I use a third party API on my webapp that is accessed when the user requests a particular ressource. I'm worried that the successive API calls happening upon user's request might cause the user to ...
4
votes
1answer
810 views

Understanding architecture of NGINX

According to this article, nginx has a master process and a number of worker processes. I'm trying to understand how a request is handled by the nginx worker processes. nginx uses an event driven ...
1
vote
4answers
8k views

Difference between REST server and REST client

I'm reading articles about REST including a tutorial. I've seen this site http://www.vogella.com/tutorials/REST/article.html, and there is a part for explaining the rest as: In a REST based ...