But…as with every framework, it does have its drawbacks, and there are times when Gatsby really isn’t the best solution. So, let’s take a look at when this could be the case.
Do you have lots of content?
If you’re constantly adding new content to your website (like few times per day) publishing updates can be kind of slow with Gatsby.
Take a large magazine-type blog, for example, it can take up to 15 minutes to generate your static website and put it on the live server.
Plus, you need to have advanced build machines that can build the page concurrently.
Why it’s like that? It’s a general problem for static generating websites. All pages should be generated when content has changed. This saves generation time for end-user (because page is already generated) but takes more time for website owners.
You can check more about it on the official Gatsby blog.
Corporate size e-shops
As I’ve already hinted in the previous paragraph, the more content you have, the larger the build time with Gatsby, which is when this solution could slow you down rather than speed you up.
Imagine you have a number of people who are responsible for adding new products to your company’s enterprise-sized e-shop, and they have to work on the site at the same time.
As the database is going to be pretty large, things can get complicated because you need to pay for a build machine that can cope with the high load, and that can be pricey.
This is why Gatsby is perfect for small/medium-sized businesses, but not quite so much for large enterprises.
We should also note that this won’t be the case forever, though. Gatsby announced they’re working on incremental builds. Exciting!
Client-side web apps
While technically it is possible to use Gatsby to create a standard web app, this framework is mostly suited for static presentation sites, blogs, e-shops, etc.
If you want to create your own next big thing, maybe a new and improved version of something like Twitter, it’s possible but you really shouldn’t.
CMS and hosting
With Gatsby, CMS and web hosting get a little complex - it’s unfortunately not as easy as signing up to GoDaddy and there’s your WordPress site hosted.
You can have both a self-hosted CMS using the likes of Netlify and a CMS that’s hosted elsewhere.
The bad part here is that updating Gatsby websites is usually handled by a service that makes sure that the page is rebuilt automatically when you send in the data. And you can’t host WordPress sites on hosting solutions like Netlify.
What can I use instead of Gatsby?
There are a number of different solutions you can use instead of Gatsby, and they start with the likes of a general Create React App.
What you can do is SSR parts of your app/site which will give you close to (if not all) of the benefits Gatsby has to offer. Then you’ve got Next.js.
Next.js is a framework for React that’s very similar to Gatsby, which allows you to make requests server-side and then render server-side which’ll help speed up your site/app and give you good SEO benefits, too.
Chances are if Gatsby isn’t really working out, Next.js is going to be the one.
I have already done some research in my article “Is Gatsby The Best Framework For Building Static Websites? What Are The Other Alternatives?”
I hope I’ve given you a brief insight into when Gatsby isn’t the best solution for you.
As you can probably tell, it’s not really a black and white kind of thing, so if you’d like to know more and talk about a concrete project, please get in touch.