Building a Mobile Data Platform with Cassandra - Apigee Under the Hood (Webcast)
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Building a Mobile Data Platform with Cassandra - Apigee Under the Hood (Webcast)

on

  • 4,848 views

 

Statistics

Views

Total Views
4,848
Views on SlideShare
2,417
Embed Views
2,431

Actions

Likes
4
Downloads
69
Comments
1

19 Embeds 2,431

http://apigee.com 1191
http://blog.apigee.com 973
http://feeds.apigee.com 75
http://blog.sonoasystems.com 67
https://blog.apigee.com 55
http://blog-dev.apigee.com 33
http://mktg-dev.apigee.com 10
http://mktg-dev.wearepropeople.md 7
http://edit.apigee.net 6
http://www.google.com 3
http://blog-dev.wearepropeople.md 3
http://apigeeblog.localdomain 1
http://216.86.157.51 1
http://blog.edit.apigee.net 1
http://ip51.216-86-157.static.steadfast.net 1
http://www.hanrss.com 1
http://mktg-new.local 1
http://webcache.googleusercontent.com 1
http://ip54.216-86-157.static.steadfast.net 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • <br /><iframe width="350" height="288" src="http://www.youtube.com/embed/HBEcIbGSeBg" frameborder="0"></iframe>
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Building a Mobile Data Platform with Cassandra - Apigee Under the Hood (Webcast) Presentation Transcript

  • 1. Usergrid
 
 Open SourceMobile Backend on Cassandra
  • 2. Hi I m
Ed Anuff


  • 3. 

API Management
API Analytics
API Tools
  • 4. Usergrid

Backend-as-a-Service
& Open Source

Mobile and
Rich client apps

  • 5. App, Cloud, & HTTP
  • 6. No Web Stack Page Templates MVC Logic Database
  • 7. Just Apps and APIs
  • 8. Key Capabilities

A platform not a single app
Flexible data model
Easy to use from anylanguage



  • 9. Why shouldCassandradevelopers careabout Usergrid?

  • 10. Open Source (APLv2)
Built on Hector
Multi-tenant (VirtualKeyspaces)
JSON and full-text indexing
Rich permissions model
REST API


  • 11. Multi-tenant data forApps
  • 12. Lots of Teams... Team Team Team
  • 13. Lots of Apps... App App App Team
  • 14. And App Users... App Team
  • 15. And data anddevices App Team
  • 16. Multi-tenancy atscaleApp App App App App App Team Team Team
  • 17. Schema Separate Database Shared DatabaseShared - Scalability + Scalability + Isolation - No Isolation + Simple - ComplicatedSeparateSchema - Scalability - Scalability + Isolation - No Isolation + Not Complicated - Complicated
  • 18. CREATE DATABASE ALTER TABLE
  • 19. Sharding SQL is toomuch work.

Oracle is too muchmoney.
  • 20. What about NoSQL?

Most NoSQL worksat the wrongabstraction level.
  • 21. Does Cassandraprovide any moreoptions?

Sort of
  • 22. Schema Separate Keyspace Shared KeyspaceShared Expensive InterestingSeparateSchema Very Unwieldy Expensive
  • 23. How would SharedSchema/SharedKeyspace work?
  • 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", … : … }}
  • 26. Conventional Row Keys In Single Keyspace Row UUID Row UUID Row UUID Row UUID Row UUID Row UUID
  • 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
  • 28. Wonderful, morethings for me to buildmyself in the apptier... 

Hold that thought...
  • 29. Shared Schema/Shared Keyspace is Virtual Keyspaces 

Part of Hector Client
  • 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
  • 32. What about indexes?

Hector doesn t filterresults
Don t add a tenant column
App-tier CF indexespreferable

  • 33. What about CQL?

See previous slide for indexlimitations
Hector doesn t currentlysupport Virtual Keyspaces viaCQL
I don t actually ever use CQL
  • 34. So what else is inthere?
  • 35. JSON

Full JSON values,fully indexed, usingJackson and stufffrom Lucene
  • 36. Permissions

Fine grained, peruser, built on Shiro
  • 37. REST

Full REST API, builton Jersey
  • 38. Anything else?
  • 39. Mongo CompatibleAPI

Experimental MongoAPI emulation viaNetty

Mongo binary wire
  • 40. That s what
Usergrid is.
  • 41. Use the ideas
Use the code
Use the cloud
  • 42. usergrid.com
git.io/usergrid

Thanks!