/r/Backend
For back-end programming discussion.
Post news, information, tricks, tips, and techniques related to backend engineering.
Jobs, advertisements, and off-topic posts will be removed.
/r/Backend
I'm a bit confused about how MVC (Model-View-Controller) works when I'm only focusing on backend development using Node.js.
When I do both frontend and backend, MVC makes sense because the "View" handles the frontend. But if I'm only working on the backend, how does the "View" fit into the picture? Is it just the Model, Controller, and Routes in that case?
Any clarification would be appreciated!
Hey guys,
I recently just finished a python FastAPI backend and I need to deploy it. Google cloud run has been giving me a bunch of permissions issues. My frontend is nextjs and it is deployed on vercel. What is the best way to deploy my backend?
Hi!
I’ve been thinking for a while, every time in a large enough product at some point configs are getting huge and tough to manage. Most of the time people will have a large JSON or some other format with a lot params that are hard to manage and deploy changes. So what if you can manage these configs with code? We’ve been working on a tool that does it - https://github.com/typeconf/typeconf. It allows you to define config schema, set config values using Typescript and read configs with generated types in your code. I believe this tool is quite powerful for working with complex configs. We’d appreciate any feedback on it!
Hi 👋
I’ve been stuck on an issue while trying to fetch metadata (like title, description, and images) from Aliexpress product URLs in my serverless functions hosted on Vercel. Here’s the weird part: it works perfectly in my local development environment, but returns blank strings when deployed to Vercel. I’m using popular libraries like:
These libraries work great for most URLs, and on my local machine, they even return the correct metadata for Aliexpress links. However, once deployed to Vercel, the metadata response becomes incomplete or blank.
Here’s what I get when deployed on Vercel for an Aliexpress link (gets favicon only):
preview: {
url: 'https://www.aliexpress.com/item/1005007613200043.html',
title: '',
siteName: undefined,
description: undefined,
mediaType: 'website',
contentType: 'text/html',
images: [],
videos: [],
favicons: [ 'https://www.aliexpress.com/favicon.ico' ],
charset: 'UTF-8'
}
But locally, the response looks like this:
{
"url": "https://fr.aliexpress.com/item/1005007613200043.html",
"title": "realme-Smartphone C61, Batterie 5000mAh, Charge SUPERVOOC 15W, Caméra AI 50MP...",
"description": "Smarter Shopping, Better Living! Aliexpress.com",
"images": [
"https://ae01.alicdn.com/kf/S4f8e9c491b8c415387e2b3525570cce2R/realme-Smartphone-C61-Batterie-5000mAh-Charge-SUPERVOOC-15W-Cam-ra-AI.jpg"
],
"siteName": "Aliexpress",
...
}
My function :
import type { VercelRequest, VercelResponse } from '@vercel/node'
import { getLinkPreview } from 'link-preview-js';
export const config = {
regions: ['cdg1'],
};
export default async function handler(req: VercelRequest, res: VercelResponse) {
const url = 'https://fr.aliexpress.com/item/1005007096221203.html?gatewayAdapt=glo2fra'
const preview = await getLinkPreview(url, { followRedirects: "follow",
},
});
return res.json({
message: preview,
})
}
I feel it is a restriction from Aliexpress, but not sure.
Hi everyone!
I recently completed a personal Project called SyncPad to strengthen my Backend skills, which is similar to Google Docs but with a real-time chat system and notification system. It allows users to collaborate on documents simultaneously.
I’m now looking to expand my knowledge and would love to take on new challenges to improve my backend development skills. Can anyone suggest some project ideas that would help me level up my backend knowledge?
Hello everyone, I came across a situation in a project I’m involved in and would like some experienced feedback,
Basically the core logic for a feature being developed comes from an external api so it’s more or less just getting the request from the client-side and passing it to the core api, originally the feature was implemented to have different controllers for different products(or at least product categories) because they have different json request fields, however, a senior engineer on the project said it should be redesigned so all requests from the client side would come in through one controller. As result of this, the implementation was changed to accept a single string field which would be json instead of a normal request body class/DTO and then the request would be forwarded to the core apis after doing some basic validation on the types(using the field names to check the datatype as key-values in a config file)
When this decision was made I was a bit surprised because this is an enterprise project and I believed there might be need to be more complex validations based on the products as the business grows, there also are not that many products (the business currently has 8, as the domain is insurance) and so I was wondering if it’s really necessary to make things that flexible.
I would like any useful opinions or considerations from anyone that might have dealt with a similar situation before. NB:The application is being released with just 3 products, with the remaining 8 to be supported later
Are here senior devs whos first and only language is JS (+TS). And they work successfully as Node.js backend devs?
Hi friends, I've been learning programming for about a year and a half now. During this time I have learned to use such programming languages as Python, Javascript, learned to work with Flask mini-framework, now I am learning FastApi, Django and Express. I also know how to use Git. Now I have a very big question, to programmers who have already found a good job and have experience. What should I do next to start working in the backend and how do I get started? I had an idea to start working on freelance sites (Fiverr, Upwork), so if someone has started like that, please post how too. Any advice from you guys would be appreciated.
FINISHED - C/C++ Data Structures and Algorithms (DSA) FINISHED - JavaScript course (downloaded)
Finished The Complete JavaScript Course 2024: From Zero to Expert! FINISHED implement simon game from scratch
-Fundamentals of Database Engineering
-The Java Design Patterns Course
-full react course
Backend Development
-Microservices with Node JS and React
projects:
create three awesome projects with awsome ideas search for ideas
Soy nuevo en esto de la programación me he comprado un vps en ovh y por medio de chatgpt he logrado entrar al servidor por ssh y e instalado ngnix. Instale fillezila para ir más rápido pero al momento de subir el documento a var/www/html de dice que no tengo permiso pensé que eran los permisos de root pero no.
Saben que podría ser el error? Gracias
Hi everyone,
I’m planning to start my project with a monolithic architecture but want to make sure the transition to microservices in the future will be manageable.
What are the best practices, design patterns, or tools I should consider to ensure the monolith is built in a way that supports a smooth transition?
I’d appreciate any insights or advice from those who’ve taken this approach.
Thanks!
Hi everyone,
I’m planning to start my project with a monolithic architecture but want to make sure the transition to microservices in the future will be manageable.
What are the best practices, design patterns, or tools I should consider to ensure the monolith is built in a way that supports a smooth transition?
I’d appreciate any insights or advice from those who’ve taken this approach.
Thanks!
Hi everyone,
I’m planning to start my project with a monolithic architecture but want to make sure the transition to microservices in the future will be manageable.
What are the best practices, design patterns, or tools I should consider to ensure the monolith is built in a way that supports a smooth transition?
I’d appreciate any insights or advice from those who’ve taken this approach.
Thanks!
I have a crucial tech interview for a sde1 backend role in a few days, and this is my last chance to get placed as there are no upcoming companies visiting my campus. I’m determined to give it my best shot.
I have solid experience developing websites using the MERN stack, including Next.js, PostgreSQL, and Prisma ORM. I’m also proficient in deployment workflows. However, after reviewing the job requirements (image attached), I feel I need to strengthen my case.
The company is looking for knowledge of microservices, serverless architecture, and AWS, which I lack experience in. I’m considering presenting a project that demonstrates a Node.js microservices architecture with AWS, but I don’t currently have such a project or experience.
Given my situation:
What project can I show or quickly create to align better with the job requirements? (It needs to showcase relevant skills in a short time frame.)
What key topics should I prepare for to perform well in the interview?
Any tips for standing out during the interview?
I’d appreciate any advice on how to approach this, especially given the limited time I have. Thank you!
Edit - The image didnt get attached so these are the requirements
• Knowledge of building web applications using Postgres, MySQL, MongoDB or other popular RDBMS or Non-relational databases.
• Knowledge of Git (Github/Gitlab/Bitbucket)
• Experience with Microservice and Serverless architecture is a plus.
• Knowledge about continuous integration softwares such as Jenkins is a plus.
• Should be able to design application server architectures on cloud (AWS knowledge is a plus)
• Must be good in logic and coding abilities.
• Strong analytical skills with excellent problem-solving ability.
• Must be passionate and self motivated.
• Excellent team player and good communication skills.
• Basic qualifications - Strong CS fundamentals in object-oriented design, design patterns, data structures, algorithm design, and operating system.
Making an e-commerce platform to sell some stuff online. I am expecting gradually increasing traffic on it. I have a couple of years of experience in Node.JS and almost none in Golang . I am confused between making the service with Node.JS or Golang. Also, help pick the right DB, MongoDB or Postgresql.
I have done some research on pros and cons of the languages and the DBs but wanting to get some advice from someone experienced.
Hey everyone,
I’m an iOS developer looking to expand my skills into backend development to support my mobile applications. My goal is to create a robust backend for handling API requests, user authentication, and other typical app functionality.
I’m currently torn between learning PHP (probably with Laravel) and Django (Python). Here’s some context about me:
Which language/framework would you recommend for someone with my background?
Also, if you’ve been in a similar position, what challenges did you face, and what advice would you give?
Looking forward to hearing your thoughts!
Hey all, not sure if anyone here can answer, but I've been a front end dev for almost 10 years and love it, but I'd really like to be more confident in my back end skills as well. I work on the back end frequently but am always afraid to make too large of changes because I lack understanding of how it all pieces together and don't want to break any complex logic. It also doesn't help that the language itself is generally a barrier because I don't know the ins and outs of any of the languages I've worked in on the backend.
That said, there's obviously tons of tutorials out there, but they all start from super basic levels and I tend to get bored. Even at the end, they seem to provide little value as far as how to actually build software at scale. I can put together a Node based pet project pretty quickly on Express, Next, Nest, etc, but I have no idea if the things I'm doing are secure. I also have only ever been at one place that focused on full stack JavaScript and their architecture was questionable IMO.
Has anyone ever transitioned to full stack / back end from front end that can share some good resources?
Obviously, learning at my current job would be ideal, but I currently lead a team and there really is no time for us to lose velocity because I'm taking on less front end work. This may have been possible earlier in my career, but ~10 years in, no one wants me working on things I wasn't hired to do.
Because .env files got me on the nerves a bit I created a credentials.ts file in my backend and put it in the gitignore to import credentials throughout my backend code.
This is probably bad practice, but is it really something I should 100% take care of or is it okay if I do it this way?
thx
Hi guys, I'm really curious if you've ever had a similar experience with me before, and if you think it's normal.
I've worked for an organization by non-paid. I created some APIs and finished testing by Postman.
Once I tried to share it to front-end developer who has already worked there for a few months already, she asked me to capture screenshots for the evidence of working of APIs that I created. Well, yeah I felt bad I did it for her anyway.
After that, when I tried to finish my working and leaving there, the manager asked me to put my APIs to Swagger. Even though I already gave them my Postman collections with its screenshots, I did. What's worse comes after I finished Swagger working, the manager asked me a video of demonstrations of APIs that I created. WTF?
She said it's professional way for my working. However, I've never experienced such not organized and rude requests ever. Why didn't she tell me before I was on board? If I knew, I wouldn't volunteer to help them.
Do you think they are weird one or I have something wrong?
Summary)
Hi , I graduated last year since then working at a MNC but bad luck they hired me as a Dev but pushed me to QA which I really don't enjoy and wants to switch to Dev asap. I use java on daily basis for backend automation testing and have became pretty familiar with it .
But is it a good option to continue with java to learn backend programming or should I switch to typescript.
As one of my peer suggested there is much greater opportunity in TS due to many growing startups and remote companies uses TS and there is also an opportunity for learning mobile/desktop/web with BE within a single language.
But on the other hand I feel most big MNCs uses java because due to it's robustness in backend systems
Ps : I have had an internship opportunity with node js so familiar with js framework
Currently I just want to go into Dev as I don't enjoy my day today work as well as looking for significant hike
Please some one recommend which path should I take
I’m looking for project ideas that can provide me with incredible personal experiences or help automate some of the processes in our family business. However, I often come across suggestions for things like blogs or social media platforms, which have been done countless times before. If I wanted to work on those, I could easily create them using a Headless CMS.
I’m looking for unique, innovative projects that stand out. They don’t necessarily have to automate business processes—they could simply offer a fresh and exciting experience. I’m interested in ideas that are either inspiring on a personal level or highly beneficial in other ways. If you have suggestions for projects that deliver incredible experiences or provide value in different ways, I’d love to hear them!
Be HONEST: will Java/Spring bring me more job offers (and money) than Python/Django, Node/Express or Python/Flask?
I am working with a relational database (DB1) that contains product pricing information, and I need to calculate average prices over various time frames. Specifically, I want to compute the average prices for the following periods for examples:
I host my entire application in GCP.
The historical data in the database remains unchanged. Additionally, I have limited control over DockerContainerA, which provides a RESTful API to interact with the data in DB1. My goal is to enable Frontend A to fetch these average price calculations via Backend A.What approach can I take to achieve this?
I have a question for seniors and mid-seniors.
This is the Backend reddit, hence the question regarding backend development.
For someone with 1 year of experience, would you recommend that they mainly use a language they like or the one most in demand in their country?
I currently work with PHP. But I personally prefer TypeScript. But the most popular one on the market is Java (in my country).
I don't dislike Java, but it doesn't motivate me either.
However, I like TypeScript, and it motivates me to do projects.
Do you value more someone who has done a lot, or someone who has your stack?
I'm looking into backend related conferences/workshops in Europe for my team members to attend to and I was looking for recommendations, from microservices, to restful APIs, etc
I am working on a B2C startup and need to design the backend for a website and mobile apps supporting a chat application. The platform will incorporate AI/ML models to analyze chats and user inputs, alongside a notification system for users. My initial idea is to separate the backend and AI services. Should I use Python for both the backend and AI components, or would it be better to leverage Nest.js for the backend, while using Python for AI?
Hi everyone, I am building my app where the main goal is to analyze - through a NLP model - a YouTube video. I’m coding my backend in python with FastAPI. The first idea I got was to (temporarily) download the audio to a storage (aws/firebase) thanks to pytube and then transcribing the audio (whisper api maybe?) to conduct the analysis. However, from the first tests it looks like the process of downloading the audio + accessing it through my script + transcribing the video takes a lot of time. Do you have some advice on how to streamline the process and which are the best technologies?
Hey everyone!
I’m building a tool to simplify mocking APIs for developers and QA teams, and I’d love to hear about your experiences with existing tools. If you’ve used tools like Postman, Mockoon, or Beeceptor (or any others), I’d really appreciate your insights!
Here are a few questions to guide your response:
Your feedback would mean the world to me and help shape the tool I’m building.
Thanks in advance!