Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Build Applications with Meteor

You're reading from   Build Applications with Meteor Isomorphic JavaScript web development

Arrow left icon
Product type Paperback
Published in May 2017
Publisher Packt
ISBN-13 9781787129887
Length 388 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Dobrin Ganev Dobrin Ganev
Author Profile Icon Dobrin Ganev
Dobrin Ganev
Arrow right icon
View More author details
Toc

Considerations for scalability


There are two things we can improve if we'd like to scale this application. The first one is passing event handlers to a child component and listening for the child to fire back with data. That itself may work well for such a small example but, in real life, it can become very difficult to track down such a workflow. The child can be a grandchild or even further down the tree, and we have to pass that prop event through all of them, even if they don't need it. To solve this, we can implement a different approach. A child who needs to fire an event back with the data (props) to the parent; we can dispatch an action to a common function that can modify the data on the top level above the parent and pass the data down again. You can say that we are doing something like that by calling the Meteor Methods from the Parent, and the reactive container will pass the props down again. This is pretty close, but we can do better. This need of a child to parent data passing...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images