Meteor is great! Why is not more popular?

But you forgot to mention NPM.

But there are libraries that implement that on top of Mongo.

Seriously! Thatā€™s pretty strong numbers there. Why do we see so many posts like ā€œwhy did Meteor failā€, or this very thread??? Like, really?

Why is it not more popular?

Hmmmm, maybe because it is the most popular already? Just go code, and use what you like. :wink:

2 Likes

DDP can be rate limited. Thereā€™s a ddp-rate-limiter package, plus Iā€™ve seen some techniques around here somewhere.

1 Like

Sure, but if ā€œtransactionsā€ are an important requirement within your application (f.e. financial app), you canā€™t rely on libraries like that. The database has to take care about the relationship between all docs. You can also remove all unique indexes and check in your application if a document with the same _id already exists. This may work most of the time, but there is also a higher chance that duplicate documents will be added.

All this stuff is just software. The ā€œtransactionsā€ you speak of are just software, even if not implemented in JavaScript, but they are nonetheless as susceptible to programmer bugs as anything else written in JavaScript. And just because itā€™s JavaScript doesnā€™t mean it canā€™t work. Make it work with no duplicates, write good unit tests so it is unlikely to break, and benefit.

1 Like

Iā€™m not talking just about Javascript, itā€™s never a good idea to put these validation logic (only) in a application. Itā€™s the job of the relational database too guarantee referential integrity and keep all indexes correct. I donā€™t think that any financial application programmer would say ā€œGreat, letā€™s write this logic in our application and forget about all those features in the databaseā€.

1 Like

Really the only difference between relational stuff in an SQL database and a relational library on top of Mongo is that SQL has years and years behind it. Itā€™s only a matter of time before these newer DBā€™s have solid built in relational stuff or community libraries built on top of these DBs that are just as solid.

Itā€™s just code, you donā€™t have to stick it in your app, you can stick it in an NPM repo and encourage contribution from the community, and make it a re-usable library. :smiley:

The requirement of having transactions in an app doesnā€™t determine if meteor is good or not. Meteor is quite great at what it does, but it may not have absolutely everything that you need.

Thatā€™s what tools are about: picking the right one for your requirements. :}

2 Likes

Yeah, but I only said that the missing relational thing could be a reason why some people donā€™t choose Meteor (because the thread is about such reasons), I didnā€™t say that you should not use it because it lacks of this feature. We are working great with Mongo + Meteor and compared to our old LAMP stack we can even provide more features and also have a better scaling.

1 Like

Agreed with Joe. Before SQL databases became the norm, teams had to implement transaction logic on their own in the application layer. The healthcare industry has been implementing application level transaction logging in our HIPAA audit logs for decades. Itā€™s perfectly manageable.

Itā€™s like complaining about driving a manual transmission instead of an automatic. Seems incomprehensible and unnecessary until you learn a few basic skills, then itā€™s trivial and itā€™s like ā€˜why was it ever a big deal?ā€™ā€¦ until you drive 500,000 miles, and literally get fatigued doing the shifting. Rolling your own transaction checks is just a matter of a lookup and a callback.

1 Like

I didnā€™t forget about NPM. When I talk with other Vue developers about Meteor, they donā€™t get satisfied with ā€œMeteor has also NPMā€. They want to hear ā€œI can do everything with just NPM without using Atmosphereā€, which will take a long time for a full transition to take (especially that currently thereā€™s no agreement yet on how to make this transition).

As people have already mentioned, there were issues in the past that have since been addressed. Things were moving very fast in the JavaScript / Node world and you canā€™t really fault MDG for not being able to perfectly predict how all that would play out. Everything considered, right now Meteor is in a pretty great place, and I mean that objectively. It fully supports NPM, React works extremely well with it and code splitting is on the way. Those are just the highlights.

Most people still have an issue with two things:

  1. MongoDB lock in.
  2. Realtime everything is very resource intensive at scale.

Apollo addresses both of those issues so weā€™ll just have to wait and see where things are this time next year. Personally, Iā€™m very happy with my decision to go with Meteor. Iā€™ll be moving from pub/sub over to Apollo / GraphQL in the coming months to get away from everything being real time. After that, I donā€™t think Iā€™ll have anything to complain about.

6 Likes

Iā€™m one of those guys that doesnā€™t understand the ā€œscaling issuesā€ of Meteor. AFAIK, the reactive: false property within publications was added years ago, and if you still have issues with large publications, itā€™s very easy to throw the db call into a Meteor method that doesnā€™t have to deal with the pub/sub scaling issues. Essentially, this transforms the db call to the backend so it works just like any server-side language, but pipes the response over DDP instead of REST. This has much faster responses than the request->response flow of any other server side language.

4 Likes

One thing we do is to transform sub documents, which donā€™t need to be reactive, straight into the published doc. So we donā€™t need any method calls or an additional publish to connect relational data. Iā€™m also wondering about scaring scaling issues. Weā€™re running a Meteor app with ~1.5k concurrent users on a single VPS (+ one for the database) and also using individual subscriptions for each visitor. So only performance issues we had so far were missing/wrong indexes in the database.

To be fair, deployment is never easy. Meteor helps though, because it takes care of all building.

1 Like

This is exactly how we are doing it in our team - we decided from the start to not use pub/sub at all, and it works great, and scaling should be trivial (we havenā€™t tried yet).

Well, Iā€™m agree with @andrewleschinsky - deployments is never easy. And MUP isnā€™t a silver bullet too.
Here is something to start with: Gist deploy.sh

reactive: false wont help with scaling because itā€™s a client only property, see https://docs.meteor.com/api/collections.html#Mongo-Collection-find

1 Like

Iā€™ll probably just repeat thingsā€¦ But for me personally:

  1. No official Vue.js support. Why still ignore it? It now has more Github stars than Angular or Meteor for that matter.
  2. MongoDB - no thanks, I need my relations. I guess Iā€™ll have to wait and evaluate Apollo.
  3. DPP is for me the USP, but few apps will need reactivity as a core feature. Most reactivity use cases for my projects are limited to notifications.

Alternatives havenā€™t been standing still. Iā€™ve always used Rails, and now with 5.1 it finally officially supports npms, Webpack and Vue.js and reactivity through ActionCable. Which means 3 less reasons to use Meteor (or actually 2, since Meteor doesnā€™t officially support Vue unlike Rails).

Meteor development seems slow, because of all the focus on Apollo. I hope when Meteor 2.0 arrives, it kicks some serious arse! Thing I love about Meteor: Javascript everywhere, a cohesive stack instead of cobbled together NPM modules and a full test suite is finally getting attention.

1 Like

Thatā€™s a great solution, thanks for the suggestion!