Questions tagged [backend]
The backend tag has no summary.
148 questions
2
votes
4
answers
140
views
Multithreaded Game Server: Single send() or Many send()s for Game List?
I'm developing a multithreaded game server (C/TCP). I need to send a list of 50-100 available games to a console client.
Option A: Send 50-100 separate messages, using send() for every single ...
0
votes
2
answers
111
views
Should I instantiate controllers in route modules or use static methods?
I’m building a modular REST API using Node.js + Express + TypeScript.
My controllers are defined as classes. In my route files, I currently create a new controller instance, like this:
import { Router ...
0
votes
2
answers
195
views
Is exposing full backend entities to a Vue frontend a bad practice? A case for DTOs?
I am doing the frontend for a Java Spring backend. The project uses JavaFX for the front but I a migrating it for web usage (with VueJS). When I make an API call to retrieve an object, I am receiving ...
12
votes
4
answers
3k
views
Is the separation of a database process from the main backend process really "good practice"?
In our current architecture, we have a React frontend communicating with a Rust backend via REST calls. We are considering introducing a PostgreSQL database, and my colleague suggests that we should ...
2
votes
1
answer
294
views
Designing a Role-Based Permission System for FastAPI: Integer Roles vs Database Roles?
Problem:
I am building a FastAPI based API and need to design a role-based permission system for authorization. Users can have one of three roles: Admin, Developer, and Operator. These roles are ...
-1
votes
4
answers
252
views
How do you design applications with client-based DBs?
Here's what a typical application that adopted the client-server architecture looks like:
A client-based frontend issues requests to a company backend server
The company backend server accepts the ...
0
votes
0
answers
93
views
Utilising Social Logins via OAuth2 in native mobile apps
This question has been asked over and over again, but I have not yet found a satisfying answer:
How to use Social Logins (via OAuth2) to obtain access tokens for your backend if your only clients are ...
-3
votes
1
answer
198
views
Is it a bad idea to use NodeJS + Python for back end development? [closed]
I'm working on a platform that consumes and transforms data to make reports and visualize those reports in a client app.
The team has experience with NodeJS and NestJS, and some of us have experience ...
-3
votes
1
answer
132
views
Backend VPS requirement estimate
I have an idea for a mobile app, but As I'm not from a Software background, I need to know how much the backend operations will cost before I commit time and resources to develop this idea. In this ...
1
vote
4
answers
743
views
How exactly is the cancellation token mechanism implemented over HTTP?
In a web application with a frontend and a backend part, how exactly is the cancellation token mechanism implemented over HTTP? HTTP is a stateless protocol and it does not allow "sharing" ...
45
votes
5
answers
7k
views
SQL sanitizing in code with no user input
In my company's codebase, we hardcode sql queries without using an ORM.
Here's an example of a query we would run:
UPDATE client SET status="active" WHERE client_id=123
Since the query is ...
2
votes
1
answer
331
views
What is the best way to design a heavy lookup web app?
I am facing a bit of a conundrum with how I can structure my application, as I try to balance speed, cost, and efficiency.
I currently have a website, algfinder.com, which solves states of rubik's ...
1
vote
1
answer
860
views
How can we remove business logic from the frontend for complex, highly interactive UI's? Should business logic always live exclusively on the backend?
I have a UI for a tool with a fair amount of user interaction.
Imagine a sports tournament predictor where you select which team will finish 1st in the group, 2nd in the group etc., with the winners ...
-1
votes
1
answer
667
views
How to design my API that interacts with a third party API and persists to a database
I'm building a web app that will integrate with the Etsy REST API and persist information in a database for things like order information, listings, etc. Essentially a panel to manage Etsy orders and ...
1
vote
1
answer
115
views
Intraservice Communication Using Kafka
recently i came across an architectural diagram in my organization, where a backend service sends messages to itself using Kafka, so basically it queues the messages and reads from the queue and ...
3
votes
1
answer
123
views
High level abstraction of file scanning service in domain driven design, and the implementations
My domain requires that a Resource (ubiquitous language for a singular unit of data to be moved - commonly a file or folder) can only be moved if it has been Scanned to ensure it does not contain any ...
-2
votes
1
answer
195
views
Using Apache and PHP to provide Frontend, possible to use PHP also for backend?
I have a design question to all the programmers out there.
Until now, I wrote most of my software in vb.NET oder C#, especially if I needed a Frontend.
Now I would like to have a Frontend which is ...
35
votes
10
answers
10k
views
Am I right that switching programming languages will have little impact on the scalability of a CRUD API?
An external consultant to our team advised us to rewrite our SaaS offering (essentially a CRUD API) in .NET because this is more "scalable" than using Node.js (or Ruby on Rails, Flask, etc.)....
41
votes
6
answers
20k
views
Is the frontend or backend (API) responsible for formatting data in a specific locale?
In our company we had a discussion whether formatting data in a certain locale is the responsibility of the frontend application or of the API that provides data to it.
Which of the following ...
1
vote
2
answers
2k
views
When updating a model on a RESTful API, should there be an update endpoint per field? or one endpoint for the model?
For a RESTful API, consider a model schema as follows:
MyCoolObject {
field_a
field_b
field_c
}
Is it better to create one update endpoint to update one or many fields on the model? Or create ...
2
votes
4
answers
200
views
How to design around webapp Out of Memory crashing on export from SQL DB to Excel?
I have a monolith CRUD application with a feature - possibility to export some DB entires to an Excel file. The export is done within a background task.
Often, however, when user presses the button ...
-3
votes
1
answer
488
views
When making a compiler, what's the best way for compiling to machine code in the backend? [closed]
I know that a lot of compilers use an assembler to compile to machine code, to make an executable (compiled program).
Some people even made their own assemblers, or they just use an existing assembler,...
0
votes
0
answers
75
views
How to validate against changes to "illegal paths" in backend requests for complex data structures?
We are building a backoffice web application where people are making changes to an array of nested objects. Because of totally non relevant business reasons there are things that users cannot change ...
0
votes
1
answer
784
views
Using databases to store temporary results between the backend and frontend of a webservice
I have a multithreaded backend application. It is inputted x, and outputs y, and this makes up a "job". A job can take up to several seconds to complete. The application is fed input via ...
4
votes
3
answers
744
views
Steps to achieve the best code quality?
Currently I'm on a project where my objective is to obtain the best code quality.
We have unit, integration & e2e testing. The e2e tests are written by the Business team in cucumber and these ...