jsdb - nosql funcional e minimalista - tdc 2016
TRANSCRIPT
Globalcode–Open4education
JSDB - NoSQL Funcional e MinimalistaPaulo Henrique Ferreira de Lima
[email protected] | http://jspare.org
Globalcode–Open4education
About me
Paulo Lima
Email: [email protected]
Twitter: @pflima92
Github: github@pflima92
Globalcode–Open4education
JSDB NoSQL Database
C
Consistency
Availability Partition Tolerance
PA
CA CP
AP
* Bigtable * Hbase * MongoDB
* DynamoDb * Cassandra * CouchDB
* RBMS
Globalcode–Open4education
JSDB NoSQL Database
RDMS - ACID
• Atomic • Consistent • Isolated • Durable
NoSQL - BASE
• Basically Available • Soft State • Eventually Consistent
Globalcode–Open4education
JSDB NoSQL Database
C
Consistency
Availability Partition Tolerance
PA
CA CP
AP
* Bigtable * Hbase * MongoDB
* RBMS
AP* JSDB
Globalcode–Open4education
JSDB NoSQL Database
Easy installation
npm install -g jsdb-server standalone packs (win64, osx, linux)
Simple configurations
Globalcode–Open4education
JSDB NoSQL Database
Integrate your project
node express integration (experimental, caution with i/o) it is simple to use
Globalcode–Open4education
JSDB NoSQL Database
Simple data structure
instances ==> schemas domains ==> families / tables
• jsdb> addInstance public • jsdb> use public • jsdb> addDomain person
Globalcode–Open4education
JSDB NoSQL Database
Mutable domains
Your data structure can change
Careful with migrations
Globalcode–Open4education
JSDB NoSQL Database
Using with microservice
Simple sample with rest service using jsdb
Globalcode–Open4education
JSDB NoSQL Database
Querying dataRetrieve all records:
GET : /persons
Filtering by fields: GET: /persons?minBadge=1&maxBadge=1500&gender=MALE
Filtering by Id: GET: /persons/61651899622
Globalcode–Open4education
JSDB NoSQL Database
Minimalist operations
Persist (Insert and Update)
QueryFor (Query domain data)
Remove (Delete some data object)
Globalcode–Open4education
JSDB NoSQL Database
Large todo list
JSDB CLI
jsdb> [command] [args]
JSDB Workbench
GUI Data Model and Workbench Expansível (Integration, Plugins, BI, etc…)
Globalcode–Open4education
JSDB NoSQL Database
Contribute with JSDBWebsite and Docs:
http://jspare.org/jsdb
Access our github:
https://github.com/jspare-framework/jsdb
Issues, Suggestions and Bugs o.O:
https://github.com/jspare-framework/jsdb/issues