DEV Community

theoretician
theoretician

Posted on

Connection between Front-end Back-end and Database of an Application.

Hi,

I just want to know the connection between front-end back-end and database of an application. I haven't deployed any, so want to hear the deployment process from a practical side.

Thanks :)

Top comments (4)

Collapse
 
rhymes profile image
rhymes

In which context? I'm not sure what you mean, can you explain a bit further?

I can assume you're talking about a web application, maybe a single page application. If I'm correct, then: usually the frontend (client) talks to the backend (server) using a protocol (likely HTTP) through an API that could be REST or GraphQL or other specs. The backend receives these calls and if it has to fetch info from a database it does so, usually calling the backing database through TCP (at least in the case of PostgreSQL), fetching such data, working on it and then sending it back to the frontend.

Collapse
 
theoretician profile image
theoretician

Awesome, this is exactly what I meant. Thank you and Very helpful :)

Collapse
 
theoretician profile image
theoretician • Edited

@rhymes Btw, how long have you been learning Vue.js? How is it so far? Just curious to know the progress. :)

Collapse
 
rhymes profile image
rhymes

I've only built a couple of apps (well, one and half) so I'm definitely not an expert but I really liked it and it resonates with my brain. It's simple enough to learn easily and powerful enough to scale if the app's size increases.

I'm not in love with SPAs in general, for the reasons narrated here:

and here: Dear Developer, The Web Isn't About You