Questions tagged [backend]
The backend tag has no summary.
148 questions
2
votes
4
answers
166
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 ...
3
votes
3
answers
1k
views
Is a SPA still a SPA if SSR is used?
I’m developing a system with separate front-end and back-end components:
The back-end is already implemented with Node.js and Express, exposing REST APIs.
The front-end must be a private SPA, ...
0
votes
2
answers
112
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 ...
2
votes
1
answer
261
views
Is it okay to mix OOP and modular approaches when building a backend with TypeScript/JavaScript?
I’m designing a backend in TypeScript (could also apply to JavaScript), and I’m wondering about the architectural approach.
Is it better to stick to a single paradigm (e.g., fully object-oriented or ...
0
votes
2
answers
204
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 ...
0
votes
2
answers
93
views
How can I efficiently handle click events and sequentially related operations (like user–URL deactivation) in a scalable URL shortener?
I am learning backend development by building a simple URL shortener project. My goal is to learn backend concepts and try to do things in simple but better ways, keeping scalability and reliability ...
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 ...
1
vote
1
answer
134
views
How to deliver static frontend via CDN (https) to customer for an on-prem client (http)
Our customers have specific backend programs running on their local machines with no access to the internet, we want to deliver a UI to them to help visualizing their backend(s). The customers ...
2
votes
1
answer
298
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 ...
-3
votes
1
answer
129
views
How to format request and response
I am new to backend REST API development. I am creating the CRUD APIs for books using spring boot.
I have a model class lets say 'user'. It will have many fields, like id, name, email, status, ...
-1
votes
4
answers
253
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 ...
3
votes
3
answers
451
views
Encapsulating a central soap service in a microservice?
I am currently developing an application (rest-backend and SPA) that requires information from people (personal data, department, superior... ). Our company has a central directory for this purpose. ...
0
votes
0
answers
95
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 ...
0
votes
3
answers
2k
views
Backend to client communication: WebSocket or Message Queue?
I have a hobby project, for simplicity imagine a poker game, consisting of a backend (Spring) and a client application (Flutter) where the client can join rooms in which he can take a seat. The client ...
-3
votes
1
answer
201
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 ...