TypoScript • Build endpoints that can be easily consumed by your client within one request • Use TypoScript, just like you would render an HTML document Example at: http://dimaip.github.io/2015/11/15/react-neos/
decides about API • Less requests ◦ Queries can express exactly the dataset needed ◦ Great to map data directly to view hierarchies • Strongly typed ◦ Application specific data schema ◦ Static code analysis on queries
content data • Makes it easy to describe and classify content • Makes it easy to organize content in an intuitive tree structure => The perfect match for any content driven application
• It is solved for TypoScript rendering via FlowQuery • FlowQuery is very expressive and intuitive to use for this task • A FlowQuery API can easily be implemented in JavaScript
request images of any side, or else they would spam the cache. Solution: allow to request an image resource only of predefined sizes. But that couples server and client. Better ideas?
no caching on its own. Solutions: • Cache on the client. Cache invalidation anyone? ◦ Cache everything, flush by hand ◦ Implement real cache invalidation mechanism on the nodejs middleware, the way we do it in TS2 ◦ Something even more advanced, perhaps Event Sourcing based
But it brings crazy challenges as well • You need to pick the right content API for the job. There is no silver bullet. • FlowQuery JS API is already around the corner. GraphQL adapter soon to follow.