Contenu connexe Similaire à Building a Mobile Data Platform with Cassandra - Apigee Under the Hood (Webcast) Similaire à Building a Mobile Data Platform with Cassandra - Apigee Under the Hood (Webcast) (20) Plus de Apigee | Google Cloud Plus de Apigee | Google Cloud (20) Building a Mobile Data Platform with Cassandra - Apigee Under the Hood (Webcast)1. Usergrid
Open Source
Mobile Backend on
Cassandra
10. Open Source (APLv2)
Built on Hector
Multi-tenant (Virtual
Keyspaces)
JSON and full-text indexing
Rich permissions model
REST API
17. Schema
Separate Database
Shared Database
Shared
- Scalability
+ Scalability
+ Isolation
- No Isolation
+ Simple
- Complicated
Separate
Schema
- Scalability
- Scalability
+ Isolation
- No Isolation
+ Not Complicated
- Complicated
22. Schema
Separate Keyspace
Shared Keyspace
Shared
Expensive
Interesting
Separate
Schema
Very
Unwieldy
Expensive
24. Users = {
"4e3c0423-…" : {
username: "edanuff",
email: "ed@anuff.com",
… : …
},
"e5d61f2b-…" : {
username: "jdoe",
email:
"john.doe@gmail.com",
… : …
}
}
25. Users = {
"4e3c0423-…" : {
username: "edanuff",
email: "ed@anuff.com",
… : …
},
"e5d61f2b-…" : {
username: "jdoe",
email:
"john.doe@gmail.com",
… : …
}
}
27. Multi-tenant Row Keys In Shared Keyspace
Tenant ID
Row UUID
Tenant ID
Row UUID
Tenant ID
Row UUID
Tenant ID
Row UUID
Tenant ID
Row UUID
Tenant ID
Row UUID
30. public static <E> Keyspace
createVirtualKeyspace(
String keyspace,
E keyPrefix,
Serializer<E> kps,
Cluster cluster);
31. Hector hides the Tenant Prefixes
Prepend Tenant UUID
Hector
Cassandra
Remove Tenant UUID
33. What about CQL?
See previous slide for index
limitations
Hector doesn t currently
support Virtual Keyspaces via
CQL
I don t actually ever use CQL