DEV Community

Discussion on: Could Blitz.js be the next big JS framework?

Collapse
 
hashiromer profile image
hashiromer • Edited

I think the title is a bit misleading which is inviting some unwarranted criticism. Blitz.js is not a framework comparable to Next js, Gatsby or Svelte kit. It is sort of a starter kit for SAAS apps so it is not meant to replace these frameworks. It is meant to quickly scaffold a SAAS web app with batteries included.

Regarding the monolith vs microservice architecture, microservices are not inherently better than monolith. When finding product market fit, we need a monolith architecture to rapidly make sweeping changes to codebase which would be extremely difficult with a microservice based architecture.

And this is what Martin Fowler has said about the topic.

"1) Almost all the successful microservice stories have started with a monolith that got too big and was broken up

2) Almost all the cases where I've heard of a system that was built as a microservice system from scratch, it has ended up in serious trouble.

This pattern has led many of my colleagues to argue that you shouldn't start a new project with microservices, even if you're sure your application will be big enough to make it worthwhile. ."

martinfowler.com/bliki/MonolithFir...

Collapse
 
flybayer profile image
Brandon Bayer

Blitz is not a starter kit. Blitz is a full-on framework meant to replace Nextjs, Gatsby, etc. Blitz is a fork of Nextjs that adds many fullstack power features and has a much more open governance structure than nextjs. For the foreseeable future (as long as the blitz community wants) we are merging in all new nextjs releases.

Collapse
 
hashiromer profile image
hashiromer

I don't see how can it replace application level frameworks like Sveltekit or Next.js since Blitz comes with a lot of decisions baked in and a lot of features some apps might not need and require customized functionality which would be easier to build with application which is not monolith.

Thread Thread
 
flybayer profile image
Brandon Bayer

comes with a lot of decisions baked in

Not accurate. One of our foundational principles is "loose opinions". We have recommendations for most people, but it's easy to ignore. There's almost no decisions we have baked in.

a lot of features some apps might not need

You can say this about anything, including Javascript itself. Not a great argument my friend :)

Blitz is literally way better that you are imagining :)

Thread Thread
 
hashiromer profile image
hashiromer

One of our foundational principles is "loose opinions". We have recommendations for most people, but it's easy to ignore. There's almost no decisions we have baked in.

How can something be monolith and have loose opinions/coupling between subsystems? Both of them cannot be true simultaneously.

a lot of features some apps might not need

You can say this about anything, including JavaScript itself. Not a great argument my friend :)

Yeah, it is not a good argument, that is why I didn't make it :) . I made this comment within the context of a monolith framework. If it contains many features, necessarily there must be tight coupling between subsystems at some layer to provide a more cohesive experience. I think this is actually a tradeoff we need to make.

Secondly you kind of misquoted me probably by mistake, this is my full comment which makes more sense given statement that comes after and.

a lot of features some apps might not need and require customized functionality which would be easier to build with application which is not monolith

Blitz is literally way better that you are imagining :)

Probably, but I am not a fan of React, this is the primary reason for me not using it, its not your fault though. I think React is a sane choice for a lot of people due to its vast ecosystem.