LockerProject / Locker

Locker - the "me" platform
http://lockerproject.org/
BSD 3-Clause "New" or "Revised" License
1.07k stars 123 forks source link

Improvement: have collections read APIs run from core #875

Open smurthas opened 12 years ago

smurthas commented 12 years ago

That way, they can expose an API.js file that will be required by core and expose their read only endpoints as part the core app. Two good things:

  1. A collections data processing can be niced down like crazy during times of heavy load while leaving data access performant.
  2. Less HTTP requests to simply get data out of the data store.
quartzjer commented 12 years ago

+1, this is exactly what I've been suggesting in the architecture initiatives!

On Feb 25, 2012, at 5:04 PM, Simon Murtha-Smithreply@reply.github.com wrote:

That way, they can expose an API.js file that will be required by core and expose their read only endpoints as part the core app. Two good things:

  1. A collections data processing can be niced down like crazy during times of heavy load while leaving data access performant.
  2. Less HTTP requests to simply get data out of the data store.

Reply to this email directly or view it on GitHub: https://github.com/LockerProject/Locker/issues/875

smurthas commented 12 years ago

I'm going to take a pass at this with the links collection. Should be straight forward. As a side benefit our APIs will likely become much more consistent as we can write a few common library functions.