Live data from Hacker News

AngularJS and MongoDB: Goodbye middle tier?

codebulb.ch

31–35 of 35 posts

Re: AngularJS and MongoDB: Goodbye middle tier?

#31
It has always been possible to do without a middle tier. At the extreme, vanilla JS can read/write directly to S3, and you don't even need a server or a front-end framework of any kind. Not that you would want to.

The more interesting question is when would/could you actually do that, and still have a fully function non-trivial app?

Re: AngularJS and MongoDB: Goodbye middle tier?

#33

Earlier quoted context omitted.

Are people choosing Angular for the same reason?

Yes, and folks are shifting towards React for the same reason. What's next?

Angular is actually way more widespread than React but nice snarky comment regardless

Re: AngularJS and MongoDB: Goodbye middle tier?

#34
post #14

Back in the early 90s we called this "client-server", it was all the rage. But the whole world moved onto to 3-tier for a reason.

This is correct, but ambiguous. What, exactly, was the reason?

The 90's client-server model involved fragile, proprietary stacks of non-portable client software and proprietary protocols. That model would have you "install" Google, Facebook and Amazon as separate applications. Ironically this has reappeared as "apps" on portable systems; it seems we've figured out how to make this work in constrained environments.

I have been solving some internal admin problems with a "two-tier" framework; ng-admin + postgrest. The business logic lives in PostgreSQL stored procedures and triggers. Effectively the middle tier has merged with the database so a big moving part has been elided from the stack. One nice benefit is that the cost paid to implement business logic produces a database model, not an arbitrary accumulation of inscrutable middle tier `behavior.' The REST API simply reflects -- and is always in perfect alignment with -- the database model.

Re: AngularJS and MongoDB: Goodbye middle tier?

#35
post #14

Back in the early 90s we called this "client-server", it was all the rage. But the whole world moved onto to 3-tier for a reason.

One MS place I worked were adamant that 3 tier meant physical separation as well; e.g. frontend servers, BL/middle-tier servers and database and duct-tape everything together with webservices or binary serialization. Thats when you know you are /really/ wearing your big boy pants to work.
Post reply on HN