Difference between back-end and front-end? [duplicate]

4

Well, there's a home page that has 3 filters:

  • (select) Property Type: House or Apartment
  • (select) Business Type: Buy or Rent
  • (input) City or neighborhood

The person enters the 3 search parameters and clicks the "search" button. Next is shown real estate to buy or rent according to the city / neighborhood she reported.

My question is: Is property filtering by parameters that have been reported in home and will be shown on the next screen, is it a front-end or back-end service?

Thanks

    
asked by anonymous 03.06.2016 / 20:05

5 answers

7

It is probably an action executed on back-end , since filtering is usually done via SQL Query , so to perform operations on the database, a back-end language like PHP is required.

However this can vary according to the developer, another case may happen, such as: having a javascript that after the selections sends a Ajax to the PHP that then performs the search, in this case the filtering is done in front-end but the search is performed by back-end .

You can learn more about these links:

Wikipedia - Back and Front end

Fábio Lobo - Difference between back and front end

Tabless - Beginners - Client and Server side

    
03.06.2016 / 20:13
5

TL; DR - Depends.

Long version : You must take into account the data traffic and user experience.

If your data volume is small (a few hundred records), simply transfer the entire collection to the client and filter locally. Running backend filtering in this case is counterproductive, since you are running on the server operations that the client can run without much effort.

If your collection is extensive you can perform the filtering, sorting, and paging processes on the server and submit only the content you are currently viewing.

    
03.06.2016 / 20:13
4

Front End

The front end would be the visual part of the site or system.

When we say "I'm going to develop the front end of the site" it means the same thing as "I'm going to develop the HTML, CSS and / or JS of the site". Front-end is everything in front (front)

Back-End

It's the back side of the site, where the magic happens, where the user does not see working like SQL requests, sending emails, etc. The backend would be programming, for example, PHP.

In your case, selects and input are part of the front-end but the result of clicking the button is the back- end (the programming), which brought the necessary information from SQL.

Summarizing your question:

Answer: It's back-end service

    
03.06.2016 / 22:06
-1

All you need is a back-end processing. In that case you will have to manipulate receiving, manipulating, and returning data.

Think of the front end simply how something is going to be displayed, the stylization.

However you can do it using a Java or Javascript type backend language that is used both back and front end.

    
03.06.2016 / 20:15
-1

Front End is the front, visual.

In the Front End you fill in the forms with the data to be sent to the Back End.

Back-End is the back, where the data is. The Front End sends the data to the Back End that searches the data in the database (or other data storage location) according to the parameters passed by the Front End and returns it to the Front End.

It is also possible for the Backend to send all the data to the Front End that will filter according to the desired parameters, but this procedure is not recommended for large amounts of data.

    
03.06.2016 / 20:15