
We're excited to announce the release of Meteor 2.16, packed with significant improvements designed to optimize your experience and enhance performance.
Optimized Oplog Tailing Performance
In response to community feedback and extensive discussions about Meteor's oplog implementation and its limitations in scaling, we've introduced new MongoDB package options to optimize oplog tailing performance.
This was thanks to one of our community members,@twisterking, who opened apull request introducing this new improvement.
The implementation provides a solution for including or excluding specific collections from oplog tailing. This simple yet effective change can drastically reduce CPU load during large batch updates.
Usage:
To configure this optimization, update your settings.json file as follows:
{//...allothersettings,"public":{//allyourpublicsettings},"packages":{"mongo":{"oplogExcludeCollections":["products","prices"],//Excludes"products"and"prices"collectionsfromoplogtailing.//OR:"oplogIncludeCollections":["messages"]//ONLYmonitorsthe"messages"collectionforoplogupdates(andall"admin.$cmd"oplogs).}}}
We believe this enhancement will greatly benefit users, reducing unwanted server restarts and ensuring smoother operations.
Session Storage Option for Accounts
Some developers have suggested that a storage system other than Local Storage (which Meteor users use to store login tokens and other things) should be possible, and the second option should be Session Storage.
Today, this is possible thanks to@StorytellerCZ, who created thisPR to address the matter.
To use Session Storage instead of the default Local Storage, you can add this to your settings file:
{//...allothersettings,"public":{//...allyourpublicsettings"packages":{"accounts":{"clientStorage":"session"}}}}
From here, your app will start using Session Storage!
How to test it
To install Meteor in this version:
npx meteor@latest
You can create a new app in this version with:
meteor create myapp--release 2.16
Or update from 2.15 to this one with:
meteor update--release 2.16
If you're coming from an older version, please check ourMigration Guides.
Special note about Meteor 3 Launch Week
With 2.16, we're also having our Meteor 3 Launch Week, introducing more of ourMeteor 3, as well asGalaxy 2.0, and we will have! So keep an eye on ourdev.to and onX.
Conclusion
This 2.16 version offers more to explore. Check out the rest in ourPR.
We can leave without mentioning the people who made this release possible:
@nachocodoner
@StorytellerCZ
@jamauro
@Twisterking
@harryadel
Thank you for your hard work and dedication to the Meteor.js community!
We encourage all users to update to Meteor.js 2.16 to take advantage of these new features and improvements.
For more information about Meteor.js, please visit the Meteor.jswebsite.
Happy coding!
Top comments(1)
For further actions, you may consider blocking this person and/orreporting abuse