I talked a bit about Collections in the ArcGIS JS API 4.0beta. Remember, Collection is part of core in 4.0, so it’s helpful to get familiar with it.
To demonstrate how to do this, let’s play around with some free traffic camera data,from the Washington State DoT. You can sign up for an API key...