Questions tagged [backend]
The backend tag has no usage guidance.
121
questions
-3
votes
1
answer
61
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 ...
-2
votes
0
answers
28
views
What's the best way to aggregate data in a micro service architecture?
Imagine you have something like a BFF (Backend for frontend) that holds many entities coming from different microservices. Those entities don't have any foreign key constraints because each entity is ...
33
votes
10
answers
9k
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 Rails or Flask etc.). By ...
-1
votes
1
answer
51
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 ...
0
votes
0
answers
18
views
Trigger function on a certain aggregation of data?
I'm trying to design a reward system which will coupons and extra benefits on unlocking rewards (referral reward, first_order_reward etc).
First I tried to make master (reward) and detail (user_reward)...
35
votes
6
answers
6k
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 ...
0
votes
0
answers
18
views
E-commerce website -> third party business management software API
I'm little bit confused about one aspect, so I came here to seek help :)
Let's say we got this scenario: I want to build myself a e-commerce website. I can think of following steps:
Simple site to ...
25
votes
6
answers
6k
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. ...
0
votes
2
answers
121
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 ...
0
votes
2
answers
110
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 (...
2
votes
4
answers
158
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 ...
0
votes
0
answers
50
views
Strategy for logging for a low latency multi processed web server backend
I've just finished a multi processed backend framework for a web server. The web server and processes are all written in C++.The web server sends a request to a free process which serves it back as ...
-2
votes
1
answer
135
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 ...
-3
votes
1
answer
134
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,...
1
vote
2
answers
172
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 ...
0
votes
0
answers
28
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 ...
1
vote
1
answer
397
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 ...
0
votes
1
answer
116
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 ...
2
votes
1
answer
81
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 ...
0
votes
0
answers
42
views
Architecture with a login
I am on my first big solo task and I am required to create an application that allows companies to work with permits, fill them out, get them signed etc.
This web-app is with invite only i.e. it is ...
4
votes
3
answers
486
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 ...
1
vote
0
answers
36
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 ...
0
votes
1
answer
337
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 ...
0
votes
0
answers
203
views
REST-API Frontend/Backend strategy/best practise for field-types and requests
I have simple single page application, using a rest-backend (Spring Boot) for CRUD-operations and an Angular 12 frontend.
My requirements are not really advanced, yet I cannot find a tutorial which ...
0
votes
3
answers
387
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 ...
0
votes
0
answers
18
views
Python Banking Transfers Systems Backend
I'm wondering how banks that use cards with chips for their transfers, actually recieve the information (like if the banks backend was written in python, how would the data be recieved, in a json ...
-2
votes
1
answer
80
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 ...
0
votes
1
answer
136
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 ...
0
votes
1
answer
148
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 ...
0
votes
0
answers
68
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 ...
-1
votes
4
answers
273
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" ...
0
votes
1
answer
117
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 ...
0
votes
2
answers
79
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 ...
6
votes
1
answer
863
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 ...
1
vote
1
answer
229
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 ...
2
votes
3
answers
656
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 ...
0
votes
2
answers
140
views
How to cache duplicate fetch and save calls that are fired within the same second
I have a service which provides an endpoint that fetches from another service, saves, and returns an record.
Here are the details:
The caller calls the endpoint using an identifier (say a customer's ...
1
vote
0
answers
35
views
Building an app+backend with extraneous functionality for an existing web shop. How to handle authentication on the backend?
This is an architecture question as I've been asked by an existing web store to build a
mobile app (they don't have a mobile app) that provides extra functionality to the store,
a web admin panel to ...
-1
votes
1
answer
160
views
Good practices for frontend-backend communication
What are some good practices for handling communication between a frontend and a backend?
From what I know in order to keep things loosely coupled you shouldn't just have your frontend have a ...
1
vote
1
answer
371
views
Pipeline design pattern and immutability
I'm developing a backend service that is supposed to process items in a pipeline-fashion. Each stage is essentially a Function<IN, OUT>. So the current stage's input is the previous stage's ...
-1
votes
2
answers
95
views
How should process be different for front-end vs back-end?
I'm looking for references that might help explain what I've seen in software engineering regarding processes for developing in the front-end vs the back-end. They are both difficult, but I tend to ...
-4
votes
1
answer
59
views
Message Strings in Backend
Its ok to have hardcoded strings on backend? Example:
Log.e("Error connecting to the database")
The text "Error connecting to the database" should be hardcoded there? Or should it be in a separated ...
0
votes
1
answer
196
views
What are differences in application architecture in frontend and backend applications?
I'm pretty experienced with developing both frontend as well as backend applications, with a variety of programming languages and frameworks. I know the problem space and concepts involved in both ...
1
vote
1
answer
2k
views
Deployment / Release strategy for separated frontend + backend web app
We develop a web app which consists of a frontend and a backend project. The frontend is consuming an API that is provided by the backend.
Frontend and backend are developed separately by different ...
-2
votes
1
answer
127
views
How should I design my API responses?
I'm working in a rest API for a turned based game from scratch, and I'm having some troubles figuring out the best architecture to do it.
I need to explain how the game works and what is my ...
1
vote
1
answer
44
views
Determining the service calls within the API based on the each consumer request
Currently, I have a rest API service which serves to many different consumers. One of the endpoints of API is for retrieving an order. Inside a single application, I am making 5 different service ...
5
votes
5
answers
218
views
How to designing API JSON Response with nullable fields
We were discussing how to design a API response, for simplicity, think of having to give information of all the different types of facilities available in a city:
{
"city": {
"cityName": "...
7
votes
3
answers
1k
views
code generation - would C be a good compiler backend?
In this and this stack overflow questions, the answers state that C as a compiler backend is a bad idea.
But why?
C has many compilers that can heavily optimize it. Every platform has a compiler ...
64
votes
10
answers
13k
views
How do I mitigate a scenario where a user goes to pay, but the price is changed mid-request?
This is kind of similar to the Two Generals' Problem, but not quite. I think there is a name for it, but I just can't remember it right now.
I am working on my website's payment flow.
Scenario
...
-3
votes
1
answer
94
views
Backend with many services
I'm mostly a Front-end Developer. One day I heard about such a thing at work like "authentication service", "registration service" and it turned out our product's backend has many services running ...