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
10 votes
2 answers
1k views

How do serverless architectures manage database connections?

The main advantage of serverless architecture is said to be that such programs do not need a dedicated server to run continuously. Then are invoked on a request and stop on exiting the function. ...
1 vote
1 answer
507 views

Should I encrypt my cookies using AES?

I'm going to encrypt the following data (server side): email, IP, username { *IP*: { email: *email at this IP* username: *username of email IP* } *IP2*: { email: ...
0 votes
1 answer
77 views

Disambiguating errors for the same HTTP status code

Assume I have two different error cases that logically have the same HTTP status code. What's the canonical way of providing data dependent on the error case in the response so that clients can ...
2 votes
1 answer
283 views

Storing/hosting sensitive business data

In order for users of my software to receive auto-updates, their copy of the software will need remote access to ~100mb of private files (manifest, jars) which means I need a server. Currently I don't ...
1 vote
1 answer
77 views

When should application fail to start?

What are the best practices regarding start of an application which depends on several services and maybe some file system stuff like mounts, directories or config file. Let's say the dababase is not ...
6 votes
3 answers
3k views

What happens to multiple parallel tasks running on a server when CPU hits 100% usage?

I am running 10 instances of the same executable where each executable is accessing a different 1/10 chunk of the total data that needs to be processed on a Windows Server 2012 R2. (Intel(R) Xeon(R) 2....
4 votes
2 answers
3k views

Socket on a webserver

So what I know about socket is that a socket is an end point of a connection for a process, hence 1 socket on a host binds to an IP and a unique port number for each connection. But a webserver (by ...
1 vote
1 answer
269 views

Storing users on the mobile game server in the memory

I'm building a server for a turn-based mobile game. I'm using SignalR for communication and I was wondering if storing list of users in the memory is a good idea? Like.. a static object of "Server" ...
1 vote
2 answers
722 views

MVC: how to design interface for database

I'm a newbie on web development and I've heard about MVC. If I'm right, it's the Controller that take charge of fetching data from DB. So I have a question: In the pattern MVC, how many objects to ...
2 votes
1 answer
104 views

Running daily tasks on backend server alongside other tasks

So I have a Google Cloud AppEngine server which has 2 main jobs. Every Day at 00:00, download lots of data (Firebase/Async), process it, and send out notifications via HTTP, interact with ...
1 vote
1 answer
576 views

Reliability for FTP Server

We have a Ftp server implemented. The manager wants to add reliability to it. He wants me to write incoming streams into some fast and reliable system (like hbase or redis) before writing them to ...
6 votes
1 answer
1k views

How do I go about setting up my Sinatra REST API on a server?

I'm an iOS developer primarily. In building my current app, I needed a server that would have a REST API with a couple of GET requests. I spent a little time learning Ruby, and landed on using Sinatra,...
2 votes
1 answer
238 views

How to reduce dependency in communication between servers

Background: My team writers back ends, whose job is to receive input, perform calculation and either return the result to the caller or to another server down the line for additional processing. We ...
3 votes
0 answers
732 views

Long lived connections

I have a custom non-blocking I/O server that supports (among other things) HTTP and websockets. I have two timeout concepts for connections: idle: connections that don't do anything are closed after ...
-1 votes
1 answer
207 views

Complete statelessness, how to save password on client in secure way

Thinking about statelessness I wonder how I can overcome the issue of saving the user's password on the client side in a secure but also comfy way. I assume the client always sends credentials to the ...
1 vote
0 answers
139 views

Background TCP server to collect data

I have an OpenGL application that plots data in real time. I would like to have a background TCP server that will accept data from a client without blocking on a call. The data is originally an ...
2 votes
1 answer
980 views

How can the PHP send a file to Java api?

I am currently working in a project that is to build a online judging system like codeforces. That is where someone can upload a file for a programming solution and our system will compile the code ...
0 votes
1 answer
1k views

Most efficient way to store multiplayer player data?

problem: Making a video-game has the following challenges on variable storage: send player states every 50-200ms, so store position/ rotation as efficiently as possible. store large blocks of data ...
7 votes
4 answers
10k views

Why does ARM processors dominate Mobile platforms while x86 dominates Desktop/Server platforms

Almost all of the mobile phones, except the ones being produced by Intel, use ARM based processors while desktop/server industry is dominated x86 processors. What features does one provide over the ...
3 votes
1 answer
312 views

Request Caching for Symfony 3 application with > 1 million combination of query parameters

We have a REST Webservice build with Symfony3 and PHP7. The application is served via Nginx and PHP-FPM. The Webservice returns a list of products. Products inside the list are filtered by attributes....
3 votes
1 answer
1k views

Observer pattern for rest services with UI client

I am developing restful services using resteasy for an application. This application has UI which will consume these rest services. Now I am having a case where I have to do a server push to UI(...
0 votes
2 answers
192 views

Is Application Server Software for Development Only?

I've been reading a lot about different servlets/application servers like Tomcat, WildFly, Jetty and GlassFish. However, I don't understand if they're only used for testing server-side code during ...
0 votes
2 answers
2k views

Solving slow but successful server response on iOS

I am trying to solve two situations here related to making POST requests and handling responses. Making a request and having request timed out due to no server response, as well as assuming that in ...
0 votes
2 answers
62 views

Allowing only users of the official client to upload media to my server. Possible?

I've been toying with a project idea for a while now but can't quite settle on one important detail. The plan is to write a client that can author and upload WebMs to a server for global viewing (...
15 votes
2 answers
21k views

What to do when request is sent to server and while waiting for response internet connectivity lost?

I am sending a huge amount of data to server. Now while I have sent the data and waiting for server response, suddenly my android device gets internet connection lost. So what I used to do is, showing ...
3 votes
0 answers
84 views

Architecture and implementation of a de-centralised web service

I'm a web programmer with several years of experience in RoR and node.js. I have a project idea that is quite big and I need some input in how it can be achieved. I heard of the Diaspora project, and ...
-1 votes
1 answer
495 views

How can I translate an ip address to a url in a Java Webserver?

I host my own webserver through Java. The problem is I can only access it through a web browser by using an ip address. Can I spoof a url? For example, I type in 192.168.2.111 into the address bar,...
-2 votes
2 answers
341 views

Why don't servers deliver JS and CSS at the same time as HTML?

Since every time a web browser requests a page, we are almost certain that there are .css and .js files to be sent as well. Why do we wait for the browser to parse the DOM and discover those files ...
0 votes
2 answers
101 views

How is server A faster than server B in some (or all) cases if B employs more parallel tasks?

After researching modern web servers, I feel that I am pretty ignorant when it comes to server design and concurrent task management by both the operating system and the server. I understand some ...
0 votes
1 answer
114 views

Can developers emulate high server traffic in order to prepare for a live environment?

With the recent publishing of Pokemon Go, we're reminded yet again at how often online-dependent software (especially games) fails to run appropriately on launch-day due to server errors. I've been ...
0 votes
1 answer
212 views

Syncing data from memory process (C++) to database

I have a C++ program that read game data from memory process. For example, int points = 0; while (1) { points = ReadProcessMemory(..) // points will be read from game's memory Sleep(100) // Don't ...
2 votes
1 answer
3k views

What are the pros and cons of using these Multithreading Models in a Client/Server Architecture

In my classes of parallel programming the teacher mentioned three models, dynamic thread creation (create threads according to demand), thread pool (create a fixed amount of threads) and mixed or ...
3 votes
1 answer
302 views

Building dedicated codepad in PHP

I am author of growing framework, which is focused around User Interface building in PHP. Essential requirements for the up-coming website redesign is ability to run code examples. I am willing to ...
21 votes
3 answers
11k views

Does Node.js actually increase scalability?

I've been reading about the C10K Problem, and of particular note is the part that refers to asynchronous server I/O. http://www.kegel.com/c10k.html#aio I believe this pretty much summarises what Node....
1 vote
1 answer
997 views

Asynchronous client-server implementation

The mission: Implement a program that will listen to multiple client requests asynchronously (on TCP) and transfer them to a server (also on TCP) to which only one connection is allowed. The program ...
1 vote
2 answers
179 views

Securing my own software... against myself?

I do a lot of programming work for other people's businesses. I am currently working on a project for my local Scouts group that I have worked with before. The problem is I have built them their ...
0 votes
1 answer
451 views

User browser, WebSockets, server C#/MVC, game

Moving a windows desktop game to a web server based one. User will use a modern web browser and communicate with the server via WebSockets (SignalR). Server runs .Net4.5/MVC - ie stateless. Game ...
1 vote
1 answer
967 views

How to scale a C# server application

I'm writing a pretty simple TCP server/client application for the first time. It is a personal project for education, but I really like my applications to be extendable and to scale in case the code ...
0 votes
3 answers
758 views

Client-Server Application Object with child Objects

Actually I'm going to build an Client Server Application, at the Login I recive the User Object from the Server. An user has a List of tasks, but I don't want to load them at the Login. So what would ...
0 votes
1 answer
250 views

Do I require an external server for my new mobile app? Only minimal text content to change within my app every couple of weeks

I am about to submit my new app to the iOS App Store. It's very simple. The app generates a random motivational quote and displays it onscreen. I have a database of 500 quotes now, stored in a plist ...
3 votes
1 answer
61 views

Quickly reflecting changes across a site to all visitors

Say: I have a website that contains a single toggle switch with 2 states. There are currently 2 (or more) clients viewing the site. and 1 client flicks the toggle switch. How can I reflect that ...
6 votes
4 answers
3k views

Why scalability issues cannot be solved by more servers ?

I know that big websites suffer from scalability issues and I guess that more servers (hardware) can help to handle scalabililty issues but I see that big websites are stuck about scalability even if ...
8 votes
1 answer
66k views

What is the difference between a server and a mainframe? [closed]

To me, it seems as though "mainframe" is a somewhat dated term; is it simply an older synonym of "server," or does it server a purpose more similar to a cluster/supercomputer?
2 votes
2 answers
315 views

Should a client ever test server response at runtime?

I'm writing a client application that receives a JSON response from a server. In the past I've run into situations where a developer on the server side changes the JSON response in a way that causes ...
1 vote
0 answers
135 views

Relying on file hash for data synchronisation across mobile and server

Imagine a client-server app that lets user upload images/documents etc. to server and then lets users who have access, retrieve and view them later on their respective mobile devices. So the flow is ...
0 votes
2 answers
3k views

How can I reduce http request while I have hundreds of images and thousands of users [closed]

I need an idea or concept how to reduce http request. Conditions: 1000s of users(android/iphone) active 100s of small images (150kb/image) to be fetched Simply by giving each image a hardcoded link, ...
48 votes
9 answers
91k views

Is it possible to know what programming language a web-site uses?

For example, stackexchange.com, without asking the site owner or Google their information about developing the website, is this possible to know what language is used in the back end? Seems, the ...
4 votes
2 answers
229 views

Containing the GPL inside an external service?

Not asking for legal advice, just educated intuition. Lets say a programmer creates a program to provide a service, for instance (hypothetically) face recognition. User logs in, uploads pictures and ...
4 votes
6 answers
2k views

Is it advisable to force your web server to parse HTML files for PHP code?

I can't remember what site I glanced over and picked up that tidbit, but someone suggested that you should keep PHP parsing to .PHP files, and not modify one's webserver's htaccess to include PHP ...
0 votes
0 answers
722 views

Multiple TCP port requirement for a client-server relationship

I designed a basic C# TCP sever that listens on some port. I extended this into 4 other servers that perform very different tasks, but together make up one product. The client needs to connect to each ...