I've been having a discussion recently in the office, about whether to provide graph data prepared via our internal back-end api or to provided generic data and parse to graph format in the front-end. Here is the basic notes i've collected from my team:
Front End Pros:
Front End Cons:
Back End Pros:
Back End Cons
It seems as though its an either/or scenario, but i wanted to ask the question to gain any other possible insights.
By back-end i mean REST API and by front-end i mean web-application (Javascript).
In general, depending of the current load of the backend, I prefer to distribute the effort in both back and front-end. Nowadays browser have decent performances and unless you have to order million rows it's acceptable. Also, depending on your needs, you can cache your formatted data on server-side.
Front and back end developers work on different sides of a website. Front end development is programming which focuses on the visual elements of a website or app that a user will interact with (the client side). Meanwhile, back end development focuses on the side of a website users can't see (the server side).
Frontend and backend communicate with each other - via Http requests. The frontend will, for example, send entered data to the backend. The backend might then again validate that data (since frontend code can be tricked) and finally store it in some database.
The back-end, also called the server-side, consists of the server which provides data on request, the application that channels it, and the database which organizes the information. For example, when a customer browses shoes on a website, they are interacting with the front end.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With