Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [backend]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
3 answers
81 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 ...
mvi's user avatar
  • 9
-3 votes
1 answer
87 views

Is it a bad idea to use NodeJS + Python for back end development?

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 ...
Mats's user avatar
  • 1
5 votes
5 answers
3k views

What to cover with integration tests?

I'm working on adding unit/integration tests to an existing project (Java/Spring Boot) and I've been investigating on how they are "separated" in order to cover the test cases and how to ...
leugimlenipse's user avatar
-3 votes
1 answer
93 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 ...
GeethVS's user avatar
0 votes
2 answers
253 views

Should I split backend into legacy and modern app to make the rewrite feasible?

My vanilla PHP backend app needs to be rewritten due to very poor design and lot of unstructured code. The legacy app is very large and the team small, so doing full rewrite in limited time is quite ...
user14967413's user avatar
0 votes
4 answers
304 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" ...
Val's user avatar
  • 167
1 vote
3 answers
207 views

frontend server obtain data from backend server, or frontend server return page with javascript that obtain data from backend server?

I'm currently learning how to separate frontend server and backend server. However, i'm not sure which approach should i take between the two Frontend server obtain data from backend server and ...
LLL's user avatar
  • 111
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 ...
half of a glazier's user avatar
0 votes
0 answers
26 views

In a layered backend architecture is the repository/manager part still relevant? [duplicate]

We all know that in a layered backend architecture we have the Controller (or view) > Service > Repository (or Manager) The Repository part is the part that retrieves and updates the DB. But now ...
Dany Y's user avatar
  • 133
2 votes
1 answer
255 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 ...
713sean's user avatar
  • 131
0 votes
2 answers
57 views

In which layer request parameter limit should be for an external endpoint?

I have a batch endpoint of the form POST /entities ["id1", "id2", ...] Where the endpoint takes an array of ids and returns a batch response. Now I want to set a maximum value to ...
Aiono's user avatar
  • 200
1 vote
1 answer
612 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 ...
MSOACC's user avatar
  • 935
1 vote
2 answers
444 views

Whose job actually is to process data in the database to become something like a chart in frontend?

I'm new here, so please be gentle. I've been having issues at my workplace about the front-end team demanding me as a backend to provide every piece of data that has to be displayed in the front end. ...
Alif Irhas's user avatar
-1 votes
1 answer
569 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 ...
juyebgastro's user avatar
1 vote
0 answers
30 views

Handling events internally in server

I'm trying to make sense of how to handle events in my server in a neat way. I'm creating a Whatsapp chatbot that receives messages via webhooks at a certain endpoint on my server. It doesn't seem ...
AlePouroullis's user avatar
0 votes
1 answer
73 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 ...
Gitonga Tosh's user avatar
0 votes
0 answers
69 views

What is the best way to design endpoints for a restful application?

I am a backend developer and I am writing a restful application. I have a question about how best to design the endpoints. I have a database table that stores values (I just provided an example) |id (...
RoyalGoose's user avatar
3 votes
1 answer
96 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 ...
Patrick Christie's user avatar
2 votes
2 answers
447 views

High level 'implementation' of a use case in a layered/DDD architecture

I am trying to understand layered architectures and apply some DDD fundamentals to improve my architecture. I am finding that determining "what" an application service actually is, what its ...
Patrick Christie's user avatar
-2 votes
1 answer
147 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 ...
Manuel's user avatar
  • 97
-3 votes
1 answer
127 views

Using two different languages where one would suffice for the task (microservices)

I previously asked this on StackOverflow, but doesn't fit there and I was suggested to move it here. I was thinking about using two seperate backend languages for seperating concerns in a project of ...
HackXIt's user avatar
  • 97
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.)....
Vincent's user avatar
  • 544
-1 votes
1 answer
57 views

Navigating a many-to-many relationship and determining price from a bulk API Call

I think it will help to give a little context, not only about the DB architecture but the actual product. I am building a business where we will be selling pallets of liquidated merchandise. Think a ...
AttemptedMastery's user avatar
40 votes
6 answers
17k 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 ...
Dario's user avatar
  • 1,055
26 votes
6 answers
8k views

How can I access Excel from my backend?

We have a lot of business logic in Excel files and we would like them to integrate in a web application (a Node.js web application). We don't want to rebuild the logic in a programming language. ...
Martin Böschen's user avatar
1 vote
2 answers
1k 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 ...
Jake Chambers's user avatar
0 votes
2 answers
1k views

Front end (or View) classes compared to back end classes

I am developing an E-Commerce Web application using C# (back-end) and JavaScript (front-end) for a computing shop. This application mainly displays each stored computer, and all information about it (...
X Y's user avatar
  • 311
2 votes
4 answers
175 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 ...
miqem's user avatar
  • 85
-1 votes
1 answer
630 views

Securing http communication between backend services [closed]

What is a good way to secure http communication between two backend services which are not hosted on the same network? One way might be to have a shared secret in both services but I feel like that is ...
mismaah's user avatar
  • 129
-3 votes
1 answer
368 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,...
Jack Murrow's user avatar
1 vote
2 answers
497 views

What Is the Industry Standard of Specifying APIs for Frontend-Backend Handshake?

I am somewhat new to web development and maybe this question belongs to stackoverflow, but there is a human-interaction component here. Here is the scenario. I am serving some neural network models ...
Della's user avatar
  • 121
0 votes
0 answers
48 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 ...
atoth's user avatar
  • 539
6 votes
1 answer
8k views

REST APIs vs Message brokers for Backend to Backend communication

We are a wholesale marketplace and we have three main products in our startup. The products are: 1- the marketplace app that allows customers to view products and purchase online. 2- the seller app ...
Eslam Nasser's user avatar
0 votes
1 answer
523 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 ...
Tom's user avatar
  • 109
2 votes
1 answer
111 views

What is a good approach to handle editing product images?

You have the following situation: You have an SQL database containing two tables product and product_images You would like the user to be able to add, remove, or move around existing images They can ...
Mehdi Saffar's user avatar
4 votes
3 answers
507 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 ...
Imaky's user avatar
  • 148
1 vote
0 answers
89 views

Request and response validation

I am currently working on a project using Flask to make REST apis, blablabla. But, working with request validation tools that we use, I am thinking of whether it would be necessary to validate the ...
Damian Akpan's user avatar
0 votes
1 answer
683 views

Can "backend" be a subdomain?

Let's imagine an application where users can work collaboratively on projects. There's a project listing where a user can subscribe to a project, and a coworking screen where multiple users can work ...
Hans's user avatar
  • 416
0 votes
4 answers
2k views

Frontend/backend SPA communication: how to handle a list of string options

I have single page application with an Angular frontend and a Spring REST-backend. What is the proper way to handle a list of string-based options in the fronted the enduser can select from, which ...
yorika90's user avatar
-2 votes
1 answer
119 views

Merge migrations from two different servers

I'm working on a project that has two separate versions of the API, v1, and v2 because they wanted to migrate from Javascript to Typescript. Both versions use the same database. Recently I'm having ...
John's user avatar
  • 5
0 votes
1 answer
248 views

Variable WHERE clause while avoiding sql injection

I want the user to be able to provide a custom WHERE statement against a mysql-backed platform... do I need to worry about any possible SQL injection attacks notwithstanding invalid sql? See the ...
Sanchke Dellowar's user avatar
0 votes
1 answer
238 views

How to let backend APIs communicate with each other?

I'm building a complicated frontend-backend application of which both the frontend and backend should be highly scalable and reusable. To serve these two requirements, I'm splitting the backend into ...
ImJustACowLol's user avatar
0 votes
0 answers
73 views

To merge software solutions or not?

Software A is a Node/Express application using a MongoDB database. It is accessed mostly via RESTful endpoint by a mobile app built in RN and an admin dashboard via React web app. It also has a ...
SKeney's user avatar
  • 109
-1 votes
4 answers
280 views

How to avoid the accident that an item price is updated right after a user clicks purchase?

This is not a real scenario. This is just my assumption that such an accident may happen if the the following events really occur in this chronological order First, a user clicked "puchase" ...
Raymond Pang's user avatar
0 votes
1 answer
565 views

Communicating state from the backend to the frontend while the user is logged in

Please note: although this question mentions Angular and Spring Boot (Java), and it would be great to get an answer from someone with experience in that stack, I think this is more of an architectural ...
hotmeatballsoup's user avatar
0 votes
2 answers
129 views

How to generate frontend URLs in a "12 factor app" service?

I'm working on a system with a user-facing frontend and with 1-n backend services which I'm trying to design according to the principles of the Twelve-Factor App. I'm now facing the task of sending ...
Kirill Rakhman's user avatar
6 votes
1 answer
2k views

Designing routes for my REST API

I'm designing a RESTful API and have come across a problem when it comes to designing my routes, specifically the admin routes. My application currently has 2 types of users: regular users and ...
user14102795's user avatar
2 votes
1 answer
564 views

Best way to handle and combine client side and server side validations

I want to know if the way that I handle form validations is a good way. What I actually do is a very detailed client side validation to validate each field and with custom error message for the UI ...
Christian LSANGOLA's user avatar
19 votes
2 answers
21k views

Should frontend and backend be on separate GitHub repos?

We are new to git, but this fundamental question needs to be sorted out before we can begin. It's two devs who have been working standalone for a while. Now the time has come to adopt git (at the ...
Firsh - justifiedgrid.com's user avatar
2 votes
3 answers
2k views

why and when is queues used in backend architectures?

I am implementing a backend with a typescript framework called nestjs and I was reading some documentation about their usage of queues. https://docs.nestjs.com/techniques/queues I have never used ...
Jonas Grønbek's user avatar