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.
105 questions
-1
votes
2
answers
237
views
Are Physical Firewalls mandatory
I have a Delphi software application that uses non standard port nnnnn to nnnnn+50 with the FTPS protocol TLS 1.3
Until now I was suggesting my customers that the Server Side application needs to have
...
0
votes
0
answers
30
views
Is there a way to add impending state changes to a queue on a node server, and is it necessary?
I'm writing an express/socket.io-powered game server for a web game. I have a central map of game state objects, each representing an ongoing match, like so:
// map of gameId -> game (primary ...
-2
votes
1
answer
97
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 ...
0
votes
2
answers
374
views
How to measure the benefit of replacing big parts of the HTML DOM vs doing a new fresh request?
I am looking for a method to measure the time difference between:
the time it takes to load and completely reach TTI for example.com/page-B given that example.com/page-A is loaded.
the time it takes ...
4
votes
2
answers
361
views
Is there a canonical definition of SPA or is SPA a broadly agreed-on architecture with fuzzy edges? [closed]
Is there a canonical definition of SPA which would exclude the software architecture model described below?
I'm working on an app with a new web-architecture model (new to me, at any rate) which has ...
3
votes
1
answer
194
views
Database consistency for a distributed system
I'm working on a phone call monitoring project. The aim is to have one row in the calls table for each ongoing call. Each call instance may be updated by many different servers/threads as more ...
5
votes
3
answers
2k
views
Is there any recognized pattern supporting or discouraging the access to the same database from multiple applications?
I don't have a formal education regarding application architecture, what I know I mostly "absorbed" on the job from enterprise architectures of the companies I worked for and/or from senior ...
-1
votes
2
answers
378
views
Achieving server-side rendering of data coming from a PHP API
I have been working on a blog application with Codeigniter 3.1.8 and AngularJS v1.7.8. It is intended to be versatile and easy to use.
The Dashboard of the application is "pure" Codeigniter, ...
-4
votes
1
answer
427
views
Where to store the images on Server-side and not to store in the static folder and How to retrieve them on request?
I am creating a Nodejs website and the website is about selling photos, although I will store the images on the static folder but in the low quality or watermarked. But When the user Purchases that ...
3
votes
1
answer
142
views
Storing username and password for another site in Node and MongoDB
This is not about storing my user's login details in the app, I already use hash and JWT tokens for that. There is a part of our app where we need to store the login details of the user for another ...
1
vote
1
answer
271
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 ...
-2
votes
2
answers
170
views
Securely allow access to a secure area of a website with PHP
I am making a website that requires a secure area for the website owner to easily upload new content to. Because this is a relatively simple website there is no account system. I just have a URL for ...
-1
votes
1
answer
238
views
If we write validation in sever side, don't it become two times of writing same code? What is the standard software engineering solution for it? [duplicate]
I am not asking whether to do server-side validation or not.
My question is whether any solution or better practice exist in the software world to address this repetition of code.
-1
votes
2
answers
196
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 ...
0
votes
1
answer
64
views
Why does YouTube save Restricted Content filter locally?
I was scrolling down on my YouTube Homepage and found that beside the filter marked Restricted Content, a point mentioned that the setting of this filter applies to this browser only. Here's the ...
1
vote
1
answer
857
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 ...
10
votes
3
answers
2k
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
1
answer
613
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 ...
9
votes
1
answer
4k
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
3
answers
163
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
4
answers
273
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
1
answer
52
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
1
answer
230
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 ...
5
votes
2
answers
1k
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
2
answers
1k
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
1
answer
382
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
2
answers
9k
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
1
answer
465
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
1
answer
129
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
2
answers
794
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 ...
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 ...
6
votes
2
answers
410
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 ~/....
2
votes
4
answers
412
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
2
answers
206
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
1
answer
245
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
1
answer
499
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
1
answer
152
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
2
answers
219
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
2
answers
156
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
1
answer
116
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
1
answer
90
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....
2
votes
1
answer
5k
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
2
answers
5k
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
1
answer
1k
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
3
answers
301
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
1
answer
340
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
1
answer
182
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
1
answer
538
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
2
answers
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
2
answers
4k
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 ...