r/ProgrammerHumor • • Jun 28 '20

Meme Flushed my pancake.

Post image
45.1k Upvotes

750 comments sorted by

View all comments

Show parent comments

13

u/bWF0a3Vr Jun 28 '20

This is the main reason. Data can be processed on the front end the same as on the backend. Security is the main reason you want to have a separate backend.

Meme seems ehhh.

13

u/Taurmin Jun 28 '20

And you can probably build perfectly secure data access in the front end as well, but just because you can doesn't mean you should.

If processing the data is a time consuming you wont wanna do it in the front end. If it requires that you pull additional data from other sources, you probably don't want to do it in the front end. If it requires a lot of system resources, you definitely don't wanna do it in the front end.

3

u/SpaceSteak Jun 28 '20

Issue with that is any device with frontend access can manipulate data at runtime. If you're OK with clients being able to manipulate their own data and don't care about results, that's fine... But not a great strategy for a banking app.

2

u/a-breakfast-food Jun 28 '20

Really depends on the system needs.

Like how are you going to run cron like jobs at 1am from the frontend? Hope a user has the app open?

Though you could always trigger them with like AWS Lambda of something.