Stack Exchange Network

Stack Exchange network consists of 174 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-side]

Server side coding involves work which does not interact with UI, and is critical to process requests fired by client-side.

1
vote
1answer
34 views

Rendering custom markdown format: client side or server side?

I am working on a project on both iOS/Android/macOS/Linux (Windows is optional, and surely no website version). There are a lot of related webpage-like data and the team decided to store the data in a ...
7
votes
3answers
193 views

Interoperability between client and server versions

Similar question: How do you handle versioning in a multi-sided project? Since the question above was asked almost 4 years ago, I was wondering if any new ideas have emerged . - We have a situation ...
2
votes
1answer
51 views

System design for multiple workers

I need to design a system where there are many micro-services which we can think of as crawlers that poll 3rd party resource and if they find some new information they pass it to some other service ...
4
votes
1answer
218 views

Single-Page vs Multi-Page and Client-Side vs Server-Side

I am currently researching the benefits and disadvantages of SPA (Single-Page Applications) vs MPA (Multi-Page Applications). Having established that MPA is more suitable for my project, I proceeded ...
0
votes
3answers
138 views

How do I deal with file downloads?

I'm currently working on a script (in PHP, but I'm not sure if that's relevant here) which allows users to set up a simple file-sharing system on their server. I'm stuck when trying to figure out how ...
2
votes
4answers
258 views

Can I assume nobody deletes user generated content off my server's file system?

Situation Currently I'm developing a web service in which users can (generally) upload binary files. These files are stored in the file system of the host OS and some additional metadata about the ...
0
votes
0answers
155 views

Multi-threaded socket chat server design

I've a general question about the design of a multi-threaded chat server application written in Java. At the moment I've the following structure: ConnectionController class which handles the I/O ...
0
votes
1answer
42 views

Dealing with server errors/database data when processing client requests

Suppose my server PHP end point follows something along the lines of the following: Client sends request to server. Server updates a record Server might do some PHP processing... Server updates ...
2
votes
1answer
156 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 ...
4
votes
2answers
341 views

Benefits of using a JS Framework

I am starting a new project and trying to decide if I should use a Javascript framework (like vue.js or react) and create a Ruby on Rails API, or use Ruby on Rails to server-side render pages and ...
7
votes
2answers
333 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 ...
1
vote
1answer
238 views

Why bother with server-side form submissions in a SPA?

I am all in favour of progressive enhancement and using server-side rendering when fetching a URL. The age-old discussion gives several advantages, such as improved load time, SEO crawling and ...
1
vote
0answers
158 views

How to set up servers in node.js for intensive calculations?

I'm developing architecture for devices where requests can be very high in in number, also the data that is received requires to do some intensive computation on it 1) Is there any method to do the ...
0
votes
2answers
1k views

One thread for all database operations or one thread for each db operations?

I am working on a server application that should handle many requests. There is one thread per each request and each request has a Database operation. Creating connection for each request and doing ...
0
votes
1answer
107 views

Best practice to send data to webhooks without multiple redirects

I’m building a payment system for some ebooks with Reactjs on the frontend, Firebase as hosting and database and cloud functions at the backend side. Customers don’t need an account to buy ebooks so ...
1
vote
1answer
77 views

Styling shareable React component?

I've been looking for a good way to style a react component just using css stylesheets. I would have used style-loader, because it's as easy as require('./style.css') and allows to save the final ...
3
votes
2answers
421 views

Mixing JavaScript and server-side scripting

I see code like this sometimes (mixed PHP and JS in this case, but could be any server-side language): <script> var data = <?php echo $bigDataStructure ?>; // then lots more pure js ...
2
votes
2answers
689 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 ...
0
votes
0answers
30 views

How to implement global sort on items read from a paginated API based on keys which are only available to the client?

I have an API that returns a list of companies as JSON, structured similar to this: [ { "id": 1, "name": "FooCorp" }, { "id": 2, "name": "Bar Industries" } /...
6
votes
2answers
291 views

Anything wrong with having aliases on a production server?

On my local server, I create aliases like these to speed up my work: alias bashrc='vi ~/.bashrc;source ~/.bashrc;echo bashrc has been sourced' alias bashprofile='vi ~/.bash_profile;source ~/....
3
votes
4answers
145 views

Test data consistency between multiple servers

I'm currently working on an architecture that have the following structure: (central server) / | \ (local server) (...
0
votes
2answers
149 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
1answer
113 views

What is the way to keep track of mobile clients ip?

assume Service S want send data to mobile App in device A in arbitrary time without client interaction. what is best way to keep track of A IP? the only way i can think of is to run a service for ...
3
votes
1answer
221 views

Misunderstanding of viewmodels relations on client and server side

I have basic viewmodel on server-side, let it be on C# language and ASP.NET Core server-side, for example: public class BookViewModel { public string Id { get; set; } public string Name { ...
2
votes
1answer
55 views

Difference between ASP.NET page and control

I currently work inside a system that any new tools get created as an ASP.NET custom server-side control, rather than a Forms or MVC page. One of my most recent projects is to convert a Forms page ...
5
votes
2answers
127 views

Is it possible to validate code execution from a remote server?

I'm looking for a way to achieve some kind of code execution validation, so for example if I have a server and a client, I want the client to execute some code (assembly) and send the server ...
0
votes
2answers
150 views

Decision that drives use of a Front Technology like Javascript for server side tasks

I have created a Project in Java which helps generate HTML's from an Excel Sheet & a template file. I am trying to understand, if I want external users to use this facility from an external ...
0
votes
1answer
109 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 ...
1
vote
1answer
75 views

Organizing effectively the project

One of our assignments is to write a website which should use a database. I would like to have some help organizing it. Here are characteristics of our work. The assignment is for a group of 5 people....
1
vote
1answer
3k views

Set keep-alive for Java ServerSocket

In a multi client server application, I need to know when each client connection is dead on the server side. After set keep-alive for client (and change default time from 2 hours to 10 second) each ...
0
votes
2answers
4k views

Server-Side Development for Android Developers [closed]

I'm a Java/Android Developer, I recently graduated college and currently working as a Jr. Android Developer. I feel very comfortable around Android and Java in general, also I'm always reading and ...
0
votes
1answer
415 views

How to stop someone from calling URL on server

I am very new to web development and am trying to create a website using client/server model. From what I understand, the front-end (client-side) calls URLs specified on the server to get information. ...
6
votes
3answers
280 views

Do microservices scale down?

I've been reading up on microservices architecture, which gained a lot of recognition in recent years. As a big fan of UNIX philosophy, I find it very clean and sensible. However, exisiting ...
0
votes
1answer
262 views

Optimizing instant notifications

Scenario To deliver instant notifications to the client, I'm sending an AJAX request to a PHP page that checks if there are new notifications: if there are, it outputs them, otherwise it sleeps for ...
3
votes
1answer
168 views

Can fast, optimized server calls collapse a server?

I've followed a series of optimizations to make our APIs faster. We microoptimized a lot of PHP code to faster, native methods, we unset variables where they were not being used anymore, and basically ...
2
votes
1answer
213 views

Updating a video's view count. Should this happen client-side or server-side?

I built an iOS app similar to Vine, where a user can scroll a feed of videos that auto play. All of these video have a View_Count field in the backend to keep track of how many times the video has ...
1
vote
2answers
3k views

How to design a backend for Polymer?

I've been watching Google I/O and I have decided to try to build a small scale site with Polymer. I have some HTML,CSS & JS knowledge, but I don't have much knowledge about programming the backend,...
4
votes
2answers
3k views

What do I need for a database server for Mobile-Apps? [closed]

I'm struggling getting my head around writing a server for a mobile app. The app is quite simple and would manly rely on geographic data and some other basic stuff liker users etc. nothing special ...
0
votes
2answers
108 views

Remote server development [closed]

We are working on a django project which is hosted on an amazon ec2 instance. It is on very early stage, so changes are made constantly and the webapp should be updated more than once a day. Right now,...
5
votes
3answers
3k views

How many threads should I use in my NIO server?

I've built a Java NIO TCP server, it currently uses four threads. One ServerRunnable thread that uses a selector and three worker threads. I've been looking around for some information about this, ...
2
votes
1answer
87 views

Are Serverlet Containers' Characteristics Against Scalability and Fault-Tolerance of a Web Application?

We most likely deploy a JVM-based Web application (e.g., Scala) on a container (e.g., TOMCAT, Jetty, etc.). Does the following points about a serverlet container goes against us to create a scalable ...
10
votes
1answer
1k views

How to avoid chatty interfaces

Background: I am designing a server application and creating separate dll's for different subsystems. To simplify things, let's say I have two subsystems: 1) Users 2) Projects Users's public ...
1
vote
2answers
2k views

Is it possible to protect client side algorithms 100%? [duplicate]

If you had a pretty novel idea that involved a new algorithm. Like lets say you were the first person to think of orbitz.com or kayak.com (travel sites) and you were able to and wanted to implement ...
2
votes
3answers
141 views

Handle server-side/client-side when for showing missing information as placeholders

I have a database table which stores Incident details. Each Incident can have an image saved for it. There are some Incidents which will not have an image for it. I have an API which pulls the image ...
0
votes
3answers
1k views

What is a login-queue?

some of you should know what a login queue is. You start your game, like world of warcraft, league of legends, ..., type in your username and password, klick "log in" and then it happens: Login Queue, ...
0
votes
1answer
50 views

Balancing between performance, convenience & separation

Consider a web application that works with somewhat sensitive data on reliable, high performance clients. The data needs to be processed and manipulated. So far I have learned that when possible, ...
4
votes
3answers
2k views

Dividing responsibilities between client and server

I'm working on a Web app that uses node.js on the server and AngularJS on the client. I'm new to Angular, but enables writing client-side applications that can be more self-contained than some other ...
0
votes
1answer
534 views

Send mapped data from server-side code to client-side code

I'm developing a application based on two technologies: ASP.net (SharePoint) and JavaScript. I use server-side code for retrieve data from database and manipulate it whereas I use client-side code ...
1
vote
1answer
2k views

Best practice for projects architecture - server side [closed]

The usual way (that I'm familiar with) to divide the server side is the n-layer architecture : DAL - data access layer, usually has the Entities and the context (and maybe include also a repository) ...
3
votes
1answer
475 views

Backend development philosophy

I feel kind of lost in this backend development process I am attempting right now. Most of the usual development practices I use while developing client-side applications don't apply here... Let me ...