NoSQL Concepts, Redis, MongoDB, CouchDB Svetlin Nakov Telerik Software Academy academy.telerik.com Manager Technical Training

Slides:



Advertisements
Similar presentations
Windows Basic and Dynamic Disk Borislav Varadinov Telerik Software Academy academy.telerik.com System Administrator Marian Marinov CEO of 1H Ltd.
Advertisements

Amazon S 3, App Engine Blobstore, Google Cloud Storage, Azure Blobs Svetlin Nakov Telerik Software Academy academy.telerik.com.
Queues, Notifications, , CDN, Logging, Caching, Background Tasks, MapReduce, … Svetlin Nakov Telerik Software Academy academy.telerik.com.
RPN and Shunting-yard algorithm Ivaylo Kenov Telerik Software Academy academy.telerik.com Technical Assistant
Shortest paths in edge-weighted digraph Krasin Georgiev Technical University of Sofia g.krasin at gmail com Assistant Professor.
Telerik Software Academy Telerik School Academy.
Asynchronous Programming with C# and WinRT
Telerik School Academy ASP.NET MVC.
Character sequences, C-strings and the C++ String class, Working with Strings Learning & Development Team Telerik Software Academy.
Hybrid or Native?! Doncho Minkov Telerik Software Academy Senior Technical Trainer
Done already for your convenience! Telerik School Academy Unity 2D Game Development.
Processing Sequences of Elements Telerik School Academy C# Fundamentals – Part 1.
C# Fundamentals – Part I
Welcome to the JSON-stores world Telerik Software Academy Databases.
NoSQL Concepts, Redis, MongoDB, CouchDB
Telerik Software Academy Telerik School Academy Creating E/R Diagrams with SQL Server.
The Business Plan and the Business Model Margarita Antonova Volunteer Telerik Academy academy.telerik.com Business System Analyst Telerik Corporation.
What are ADTs, STL Intro, vector, list, queue, stack Learning & Development Team Telerik Software Academy.
Making JavaScript code by template! Learning & Development Team Telerik Software Academy.
Svetlin Nakov Telerik Software Academy academy.telerik.com Manager Technical Training Who, What, Why?
Svetlin Nakov Telerik Software Academy Manager Technical Training
Access to known folders, using pickers, writing to and reading from files, caching files for future access George Georgiev Telerik Software Academy academy.telerik.com.
Accessing SQL Server and MySQL – Live Demo Svetlin Nakov Telerik Software Academy academy.telerik.com Manager Technical Training
Processing Matrices and Multidimensional Tables Svetlin Nakov Telerik Software Academy academy.telerik.com Technical Trainer
Learning & Development Telerik Software Academy.
Reading and Writing Text Files Svetlin Nakov Telerik Software Academy academy.telerik.com Technical Trainer
Telerik Software Academy ASP.NET Web Forms.
Classical OOP in JavaScript Classes and stuff Telerik Software Academy
Using Selenium for Mobile Web Testing Powered by KendoUI Telerik QA Academy Atanas Georgiev Senior QA Engineer KendoUI Team.
New features: classes, generators, iterators, etc. Telerik Academy Plus JavaScript.Next.
Creating E/R Diagrams with SQL Server Management Studio and MySQL Workbench Svetlin Nakov Telerik Software Academy Manager Technical.
Telerik Software Academy ASP.NET Web Forms.
Private/Public fields, Module, Revealing Module Learning & Development Team Telerik Software Academy.
Building Data-Driven ASP.NET Web Forms Apps Telerik Software Academy ASP.NET Web Forms.
Course Introduction Svetlin Nakov Telerik Software Academy academy.telerik.com Manager Technical Training
Nikolay Kostov Telerik Software Academy Senior Software Developer and Trainer
Telerik Software Academy End-to-end JavaScript Applications.
What is a Database, MySQL Specifics Trần Anh Tuấn Edit from Telerik Software Academy
Planning and Tracking Software Quality Yordan Dimitrov Telerik Corporation Team Leader, Team Pulse, Team Leader, Team Pulse, Telerik Corporation,
What you need to know Ivaylo Kenov Telerik Corporation Telerik Academy Student.
Data binding concepts, Bindings in WinJS George Georgiev Telerik Software Academy academy.telerik.com Technical Trainer itgeorge.net.
Pavel Kolev Telerik Software Academy Senior.Net Developer and Trainer
Objects, Properties, Primitive and Reference Types Learning & Development Team Telerik Software Academy.
ORM Concepts, Entity Framework (EF), DbContext
When and How to Refactor? Refactoring Patterns Alexander Vakrilov Telerik Corporation Senior Developer and Team Leader.
Free Training and Job for Software Engineers Svetlin Nakov, PhD Manager Technical Training Telerik Corp. Telerik Software Academy.
Free Training and Job for Software Engineers Svetlin Nakov, PhD Manager Technical Training Telerik Corp. Telerik Software Academy.
Access to known folders, using pickers, writing to and reading from files, caching files for future access George Georgiev Telerik Software Academy academy.telerik.com.
DBMS Fundamental Concepts Svetlin Nakov Telerik Software Academy academy.telerik.com Manager Technical Training
Doing the Canvas the "easy way"! Learning & Development Telerik Software Academy.
.NET Cloud Development Made Easy George Georgiev Telerik Software Academy academy.telerik.com Technical Trainer 1.
Creating and Running Your First C# Program Svetlin Nakov Telerik Software Academy academy.telerik.com Manager Technical Training
Course Overview Doncho Minkov Telerik Software Academy Technical Trainer
Data Types, Primitive Types in C++, Variables – Declaration, Initialization, Scope Telerik Software Academy academy.telerik.com Learning and Development.
The past, the present, the future Learning & Development Team Telerik Software Academy.
Learn to Design Error Steady Code Svetlin Nakov Telerik Software Academy academy.telerik.com Technical Trainer
Connecting, Queries, Best Practices Tran Anh Tuan Edit from Telerik Software Academy
Processing Sequences of Elements Telerik Software Academy C# Fundamentals – Part 2.
Telerik JavaScript Framework Telerik Software Academy Hybrid Mobile Applications.
Telerik Software Academy Databases.
Things start to get serious Telerik Software Academy JavaScript OOP.
Learning & Development Mobile apps for iPhone & iPad.
Processing Matrices and Multidimensional Tables Telerik Software Academy C# Fundamentals – Part 2.
Nikolay Kostov Telerik Software Academy academy.telerik.com Team Lead, Senior Developer and Trainer
Functions and Function Expressions Closures, Function Scope, Nested Functions Telerik Software Academy
Implementing Control Logic in C# Svetlin Nakov Telerik Software Academy academy.telerik.com Manager Technical trainer
Mocking tools for easier unit testing Telerik Software Academy High Quality Code.
What why and how? Telerik School Academy Unity 2D Game Development.
Windows Security Model Borislav Varadinov Telerik Software Academy academy.telerik.com System Administrator
NoSQL Databases NoSQL Concepts Databases Telerik Software Academy
Presentation transcript:

NoSQL Concepts, Redis, MongoDB, CouchDB Svetlin Nakov Telerik Software Academy academy.telerik.com Manager Technical Training

 NoSQL Databases Overview  Redis  Ultra-fast data structures server  Redis Cloud: managed Redis  MongoDB  Powerful and mature NoSQL database  MongoLab: managed MongoDB in the cloud  CouchDB  JSON-based document database with REST API  Cloudant: managed CouchDB in the cloud 2

NoSQL Databases Overview, Models, Concepts, Examples

 NoSQL (cloud) databases  Use document-based model (non-relational)  Schema-free document storage  Still support indexing and querying  Still support CRUD operations (create, read, update, delete)  Still supports concurrency and transactions  Highly optimized for append / retrieve  Great performance and scalability  NoSQL == “No SQL” or “Not Only SQL”? 4

 Relational databases  Data stored as table rows  Relationships between related rows  Single entity spans multiple tables  RDBMS systems are very mature, rock solid  NoSQL databases  Data stored as documents  Single entity (document) is a single record  Documents do not have a fixed structure 5

* 1 6 Name: Svetlin Nakov Gender: male Phone: Address: - Street: Al. Malinov 31 - Post Code: Town: Sofia - Country: Bulgaria Site: Document Model Relational Model * 1 * 1 Name Svetlin Nakov Gendermale Phone Sitewww.nakov.com CountryBulgaria Street Al. Malinov 31 Post Code 1729 TownSofia

Ultra-Fast Data Structures Server

 Redis is  Ultra-fast in-memory key-value data store  Powerful data structures server  Open-source software:  Redis stores data structures:  Strings  Lists  Hash tables  Sets / sorted sets 8

 Redis Cloud  Fully managed Redis instance in the cloud  Highly scalable, highly available  Free 1 GB instance, stored in the Amazon cloud  Supports data persistence and replication   Redis To Go  5 MB free non-persistent Redis instance  9

 ServiceStack.Redis API  github.com/ServiceStack/ServiceStack.Redis github.com/ServiceStack/ServiceStack.Redis  Sample C# code: 10 string redisHost = "redis.garantiadata.com"; int redisPort = 14233; string redisPass = using (var redisClient = new RedisClient(redisHost, redisPort, redisPass)) new RedisClient(redisHost, redisPort, redisPass)){ string key = "username"; string key = "username"; string value = "nakov"; string value = "nakov"; redisClient.Set (key, value); redisClient.Set (key, value); Console.WriteLine(redisClient.Get (key)); Console.WriteLine(redisClient.Get (key));}

Live Demo

Mature and Very Powerful NoSQL Database

 MongoDB –  Very powerful and mature NoSQL database  Scalable, high-performance, open-source  JSON-style document storage, schemaless  Replication & high-availability support  Auto sharding – clustering & data partitioning  Indexing and powerful querying  Map-Reduce – parallel data processing  GridFS – store files of any size 13

 MongoLab  Free 0.5 GB instance   MongoHQ  Free 0.5 GB instance (sandbox)   MongoOd  Free 100 MB instance 

15  The official MongoDB C# driver from 10 gen  github.com/mongodb/mongo-csharp-driver github.com/mongodb/mongo-csharp-driver  Sample C# code: var connectionStr = var client = new MongoClient(connectionSt); var server = client.GetServer(); var db = server.GetDatabase("mongodb-name"); var persons = db.GetCollection ("Persons"); persons.Insert (new Person(…)); var resultPersons = from p in persons.AsQueryable () from p in persons.AsQueryable () where p.Address.Town == "Sofia" where p.Address.Town == "Sofia" select p; select p;

Live Demo

JSON-based Document Database with RESTful API

 Apache CouchDB  Open-source NoSQL database  Document-based: stored JSON documents  HTTP-based API  Query, combine, and transform documents with JavaScript  On-the-fly document transformation  Real-time change notifications  Highly available and partition tolerant 18

 Cloudant  Managed CouchDB instances in the cloud  Free $5 account – unclear what this means   Has nice web-based administration UI 19

20  Many CouchDB C# APIs  github.com/soitgoes/LoveSeat github.com/soitgoes/LoveSeat  Sample C# code: var client = new CouchClient( dbHost, dbPort, dbUsername, dbPassword, dbHost, dbPort, dbUsername, dbPassword, false, AuthenticationType.Cookie); false, AuthenticationType.Cookie); var db = client.GetDatabase("some-db"); db.CreateDocument(new Person() { Name = "Svetlin Nakov", Name = "Svetlin Nakov", = =

Live Demo

форум програмиране, форум уеб дизайн курсове и уроци по програмиране, уеб дизайн – безплатно програмиране за деца – безплатни курсове и уроци безплатен SEO курс - оптимизация за търсачки уроци по уеб дизайн, HTML, CSS, JavaScript, Photoshop уроци по програмиране и уеб дизайн за ученици ASP.NET MVC курс – HTML, SQL, C#,.NET, ASP.NET MVC безплатен курс "Разработка на софтуер в cloud среда" BG Coder - онлайн състезателна система - online judge курсове и уроци по програмиране, книги – безплатно от Наков безплатен курс "Качествен програмен код" алго академия – състезателно програмиране, състезания ASP.NET курс - уеб програмиране, бази данни, C#,.NET, ASP.NET курсове и уроци по програмиране – Телерик академия курс мобилни приложения с iPhone, Android, WP7, PhoneGap free C# book, безплатна книга C#, книга Java, книга C# Николай Костов - блог за програмиране

1. Register for a free Cloudant account at Write a simple "Dictionary" application in C# or JavaScript to perform the following in Cloudant:  Add a dictionary entry (word + translation)  List all words and their translations  Find the translation of given word The UI of the application is up to you (it could be Web-based, GUI or console-based). You may download a Cloudant client library from

3. Implement the previous task ("Dictionary") with Redis  Register for a free "Redis To Go" account at:  Download the client libraries for your favorite programming language from Implement the previous task ("Dictionary") with MongoDB (register at MongoLab or MongoHQ) 24

 Telerik School Academy  schoolacademy.telerik.com schoolacademy.telerik.com  Telerik Software Academy  academy.telerik.com academy.telerik.com  Telerik Facebook  facebook.com/TelerikAcademy facebook.com/TelerikAcademy  Telerik Software Academy Forums  forums.academy.telerik.com forums.academy.telerik.com