Mingle Card: 2478
In order to extract the current sync into a background worker, we must eliminate the dependency sync has on ExpressJs Sessions (since the worker will be stateless).
The Express session contains:
oauth token
namespace for queries
boolean indicating whether or not to use the namespace
currentUser (not used by GET /sync)
It should be possible to encapsulate the state necessary to complete a sync by adding the required state to the QueryHandler instance that is passed to the sync.get() method.
Mingle Card: 2478 In order to extract the current sync into a background worker, we must eliminate the dependency sync has on ExpressJs Sessions (since the worker will be stateless).
The Express session contains:
It should be possible to encapsulate the state necessary to complete a sync by adding the required state to the QueryHandler instance that is passed to the sync.get() method.