Questions tagged [backend]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
25 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 ...
3
votes
4answers
69 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
339 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 ...
65
votes
10answers
12k 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 ...
0
votes
0answers
22 views

Gateway aggregation is only for microservices?

I started to work in an existing Angular app that consumes a monolithic Web API writen with .NET CORE. This API has dozens of controllers(routes). In one of the main screens, when one specific event ...
-3
votes
1answer
83 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
32 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
69 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 ...
1
vote
2answers
1k 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
95 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
166 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
68 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
75 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 ...
2
votes
1answer
160 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
30 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
108 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
41 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
182 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 ...
0
votes
1answer
404 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
127 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
70 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 ...
4
votes
2answers
532 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 ...
-3
votes
2answers
152 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
243 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 ...
0
votes
1answer
378 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
68 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
119 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
134 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 ...
1
vote
1answer
89 views

Best practices for maintaining data contracts with different ends of the system

I am currently researching best practices for data contracts between components in our system. Right now we've stuck to using Word documents and JIRA tickets when the contract changes. The data ...
0
votes
2answers
93 views

Class design : Decide between file and database for storage during runtime [closed]

Based on the demo or license version of my application, I am supposed to either save the data to a file (xml) at a specific location or a relational database. What should be my approach for this case ...
1
vote
2answers
4k views

Ways to authenticate and redirect with decoupled front-end web application

I have a coupled web application (frontend and api backend served from the same application). It's worked well for our needs but I've been curious about the differences that would go into having a ...
1
vote
1answer
92 views

Backend - own database vs live parsing

I am developing a mobile app that depends on some nearly static data. I will gather that data initially from an existing website by doing some HTML parsing. I could now create a database from that ...
-1
votes
5answers
599 views

Frontend and backend developer working on a project - who starts the tasks first?

Even though it depends on the context, I was wondering: during a project that requires a frontend and a backend developer, who most often starts with the tasks first? This assumes the web design is ...
-2
votes
1answer
80 views

How to calculate user activity

I am working on a Xamarin.Forms PCL social media app project. People can like posts and comment on them which is saved in MySQL. I would like to add an activity page. What is the best way to ...
1
vote
2answers
2k views

Best Practices - Including endpoint URL calls in JavaScript vs backend calls

I am building a web application that will retrieve results from a remote server and use them to render some charts and maps. The remote server has already been implemented and contains a large amount ...
3
votes
1answer
166 views

How do websites/apps deal with so many people online at once? [closed]

I’ve been wondering about this for a little bit, but I couldn’t find much info on Google. What do big websites like YouTube do to manage all the traffic they get without their website slowing down? ...
3
votes
1answer
2k views

How to architect Notification service logic?

We are building a notification service whose work is to send push notification to end user. There are two types of notifications Group notification where we send same text notification to all user's ...
0
votes
0answers
191 views

Integration Testing a dynamic backend

Our company creates financial software that integrates into a banking system backend. We're running into a lot of problems making changes to it without seemingly impacting another customer or another ...
-3
votes
1answer
621 views

Where is better to calculate the total sum, back end or front end?

If I have a list of products and I need the total price of those products. Where is better to calculate the total sum, back end or front end? Front end React Back end PHP Table that shows Invoices ...
4
votes
2answers
915 views

Design for client-server synchronisation

Background I am working on improving the backend design for a video game. The game is live and working fine, but we want to improve various things. As a video game studio, we often do events which ...
1
vote
1answer
39 views

One resource per business object or many resources for many purposes?

I'm developing a JavaScript UI client and my back-end developer refuses to pass me the data in a form that I don't have to transform afterwards. So, I'm currently working on a mapper that contains a ...
2
votes
1answer
331 views

How do I design a backend API with a different query range?

If I have a blog system, there is now a query that is given a range and then gets the number of new blogs in that range. The range may be: one day one week a month six months a year How do I design ...
0
votes
1answer
444 views

Correct way to inform business rules violation during JSON parsing

We have the following scenario in our company: There are some business objects which have business rules associated with them. One of these objects, Person, has the following rules: A Person must ...
0
votes
1answer
546 views

REST API implementation for graph data - Where to calculate graph units

We have a graph that shows bandwidth usage over time. The bandwidth is returned from the server in bytes. We need to decide which units to show in the graph in case there are several different ...
10
votes
2answers
1k views

How do serverless architectures manage database connections?

The main advantage of serverless architecture is said to be that such programs do not need a dedicated server to run continuously. Then are invoked on a request and stop on exiting the function. ...
1
vote
0answers
69 views

Parse: Managing inventory with subclasses

I'm working on a system which manages inventory in a warehouse setting. All of the inventory items share some common traits, such as name, description, photo etc... However, there are about 6 very ...
0
votes
1answer
118 views

WCF Services for transaction processing and business logic

I work at a small to medium enterprise that are in the business of handling the processing of transactions for the selling and purchasing of "online, electronic products". Things such as prepaid ...
1
vote
3answers
684 views

What are the disadvantages of using services such as Firebase when compared to writing your own back-end?

I am trying to build a mobile application (Android/iOS) and the app will require a lot of back end operations. After doing some research I noticed that several developers recommended using MBaaS ...
1
vote
6answers
780 views

Inter-language Communication

If you have a program that has a front-end and a back-end written in two different languages, how do those two systems communicate with each other? I have no professional experience in programming, I'...
3
votes
1answer
2k views

Architecture for real-time application, avoiding duplicate messages for queues with no active consumers

I am designing the architecture of an application which has your typical backend and frontend components. The frontend application must be semi real-time. For this requirement, the backend is pushing ...