Questions tagged [backend]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
22 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
2answers
43 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
0answers
6 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
1answer
38 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
1answer
93 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
1answer
78 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
0answers
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
4answers
266 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
1answer
57 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
2answers
41 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 ...
5
votes
1answer
228 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
1answer
131 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
3answers
304 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
2answers
59 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
0answers
33 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
1answer
107 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
1answer
205 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 ...
0
votes
0answers
31 views

How to process a long list of data from database with Message-driven bean due to the asynchronous requirement properly

There is a task in our JavaEE project: a user in the frontend page A can click a button to request to get a zip with the processed data. As the process of the request in the backend needs plenty of ...
-1
votes
2answers
73 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
1answer
46 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
1answer
101 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 ...
0
votes
1answer
1k 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
1answer
122 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
1answer
43 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 ...
4
votes
5answers
152 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
3answers
757 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
10answers
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
1answer
86 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 ...
1
vote
0answers
42 views

Angular integration with back-end

We're developing a big project for our company, and they asked us to use Angular even though none of the devs have any considerable experience with it. The back-end is C#/.NET Core with ABP. My ...
1
vote
3answers
76 views

Proper DTO structure for a dynamic list of properties

I have an endpoint /api/properties which returns a dynamic list of properties, e.g. { userId: 1, groupId: 2, ... } The difficult part is that most of the properties are integers (ids) and I ...
5
votes
2answers
7k views

Authentication and authorization - front-end vs back-end dilemma

I'm working on centralized authentication and authorization API system and got stuck in front-end vs back-end dilemma. Front-end person is telling that should to have only one request to that API to ...
1
vote
1answer
146 views

Saving flags in the database without relationships to other tables

I have an admin panel which can set a lot of options which will affect some other services drastically. For example I got one that if I create a different category I can just insert it in the Category ...
1
vote
1answer
292 views

Should I keep my web app front end completely backend agnostic

I am very much an amateur developer. I have written a web app which uses parse-server as a backend. My question revolves around how agnostic the frontend should be to the backend (parse server)? For ...
1
vote
2answers
387 views

Excel Addin VBA, Backend/Frontend

I have a question regarding what is supposed to be backend and frontend for desktop applications and in this special case, an Excel Addin VBA. My application contains lot of forms and modules. I ...
2
votes
0answers
193 views

Connect a web-app to to the back-end message queue

We are currently looking into dividing our back-end in multiple services using a message queue (RabbitMQ). Having a message queue suddenly gives us the possibility to update the web-app freely, but do ...
3
votes
1answer
514 views

Front-end supporting multiple back-end versions - Maintaining backward compatibility

I know it's a broad question so I'll try to be as specific as possible. This question is probably as much an "organisational" question as a technical one. Our company is selling our software/platform ...
0
votes
0answers
40 views

Notification system on app using Firebase

I have to build an app that manages orders between customers who submit the orders and riders who deliver them. Riders work in shifts, so when a customer submits an order, only the riders that are ...
-2
votes
1answer
249 views

Principles of Adding New Objects in Backend/Database and How Front End Business Logic Should Work with Response

Apologies for the title, perhaps someone can suggest a better way to summarize my question. Let's say I have a task/checklist application. On the front-end, I create a task. The eventual result is ...
-1
votes
1answer
42 views

How should I update back-end data (e.g. follows, likes, etc.) which changes at an inconsistent rate?

(This is a conceptual question but as reference, I'm using Android Studio (Java) and Firebase Firestore...) My app currently has a structure where the user can follow authors and favorite their works....
3
votes
1answer
481 views

Where should the display messages on the UI be stored?

I am a backend developer and was having this argument yesterday with a frontend dev in my team about whether or not should I let him fetch the displayable text message about the result of an operation ...
1
vote
1answer
1k views

The Frontend-Backend Vs. Backend-Backend

I've seen this pattern pop up in a couple of different teams. They have a server with a REST API and a frontend web project. What commonly happens is the frontend developer finds their requests are ...
0
votes
3answers
274 views

Duplicated formula in front and back end

I'm struggling with logic that is duplicated in the front end code and the database. Right now, I just put a comment. Here is a small example (the current system has a lot of much more complicated ...
2
votes
1answer
76 views

How to indicate to backend that model need be updated or created new?

There's a complex model which represented by complex JSON with multiple fields and nested objects. Recently we have discussed in which way indicate to the backend that the object needs to be saved as ...
5
votes
2answers
1k views

Clearing up misconceptions about a Flask backend and client-side rendering

I am building a website and along the way I have come across a lot of things I didn't know about and was hoping to get some help in understanding some of them. I started building a website using Flask ...
-3
votes
2answers
286 views

Why are multiple backends in this system? [closed]

I am trying to understand the architecture of the system described in this patent about aggregating and analyzing confidential data: https://patents.justia.com/patent/20180089196. The general ...
1
vote
3answers
324 views

Modelling recurring events

I am in the process of writing a web app to track expenses and which will be multiuser. Everything is fine with a single expense, but I am struggling to find the best way to represent recurring ...
1
vote
2answers
834 views

Debugging code in production?

I've come across a problem that doesn't occur in our development environment or test environment, but does occur in our production environment. Obviously, this environment is pretty locked down, and ...
1
vote
2answers
120 views

Securing e-commerce administrator panel with a VPN

I am developing the back-end of an e-commerce system, which has customer and administrator type accounts. These two roles do not overlap, administrators are there to do the back office work, while ...
0
votes
2answers
168 views

Proper way to manage database for distributed backend architecture

My application backend consists of a bunch of standalone tasks linked together by messaging queues. They all need to access the same SQL database in order to run and store their results. Right now, ...
1
vote
1answer
143 views

Where to put intermediary business logic in a backend

Consider you have a GravityLogic and a WeakForceLogic class. In themselves both provides tons of business logic. Now you want to create interactions between those which produce a complete different ...