This gist is about using a Multi-Tenancy strategy for your Doctrine entities.
See: https://gist.github.com/CarlosEduardo/aedfa640e3f7f22451686fb7e57228e3
| //assumes you have the following environment variables setup for AWS session creation | |
| // AWS_SDK_LOAD_CONFIG=1 | |
| // AWS_ACCESS_KEY_ID=XXXXXXXXXX | |
| // AWS_SECRET_ACCESS_KEY=XXXXXXXX | |
| // AWS_REGION=us-west-2( or AWS_DEFAULT_REGION=us-east-1 if you are having trouble) | |
| package main | |
| import ( | |
| "fmt" |
This gist is about using a Multi-Tenancy strategy for your Doctrine entities.
See: https://gist.github.com/CarlosEduardo/aedfa640e3f7f22451686fb7e57228e3
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| package controllers; | |
| public class Application extends Controller { | |
| // in cache during 1800 seconds (30 min) | |
| @Cached(key = "pagingList", duration = 1800) | |
| public static Result index(Integer page) { | |
| String uuid = session("uuid"); | |
| if (uuid == null) { | |
| uuid = java.util.UUID.randomUUID().toString(); |