SlideShare a Scribd company logo
1 of 18
Sterowniki .NET i C++ dla
Apache Cassandra
www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
dr inż. Paweł Kapłański
Cognitum
p.kaplanski@cognitum.eu
Cognitum
Autoryzowany dystrybutor DataStax Enterprise w Polsce
Dostarczamy:

Big Data

Cloud



Wysoce skalowalne aplikacje w chmurze



Rozwiązania Big Data



Systemy zarządzania wiedzą



Aplikacje dedykowane



Rozwój oprogramowania i testowanie aplikacji



Konsulting IT

Semantics
strong partnerships:

Customers from: US, CH, FL, DE
www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
Spis treści (Agenda)
1.
2.
3.
4.
5.
6.
7.

Cassandra
Jak działają stare sterowniki oparte o Thrift
Asynchroniczność
Binarny protokół klient-serwer w Cassandrze
Przykład (driver .Net)
Plany na przyszłość
Driver C++

www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
Cassandra
1. noSql – BigTable (Google 2005)
2. Stworzona w FB – obecnie Apache
3. Rozproszona
4. Skalowalna - Duże (100PB) dane
5. Obecnie już istnieją instalacje po 1000 nodów
6. Symetryczna (odporna na awarie)

7. Klaster (możliwość instalacji „multidatacenter”)
8. Elastyczna – duże możliwości konfiguracji
9. CQL – Cassandra Query Language
– podobny do SQL
www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
Multidatacenter

www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
Typowa aplikacja (serwis www .Net)

www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
Ważne!
1. Driver to nie tyko „smart socket” - posiada
rozbudowaną logikę działania
2. Driver zarządza połączeniami do klastra
– load balancer
3. Użytkownik nie musi martwić się o
połączenie i strategię – wystarczy ze użyje
jednej z dostaraczanych np. RoundRobin
4. Driver potrafi automatycznie powtórzyć
zapytanie w razie potrzeby
5. Można tworzyć własne strategie
6. Lock-free (wysoka wydajność)
www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
Interfejsy C*: Thrift
1. IDL (interface definition language)
2. Pozwala na automatyczne generowanie
kodu w różnych językach

3. Sam Thrift to nie wszystko – trzeba
obsłużyć zapytania do klastra
4. Zapytanie blokuje połączenie
(podobnie jak zapytanie http)
w oczekiwaniu na odpowiedź

www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
Interfejsy C*: Protokół binarny
1.

Operacje asynchroniczne

2.

Pojedyncze polaczenie do 128
jednoczesnych zapytan

3.

Lepsze wykorzystanie zasobów (połączenia
są kosztowne)

4.

Cassandra może lepiej optymizować

5.

Wsparcie dla programowania
asynchronicznego – powszechne obecnie w
podejsciu client-server

6.

Zdarzenia z Cassandy są „pushowane”
•

zmiana schematu bazy

•

zmiana w topologii klastra

www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
Wspierane języki
1.

Native Protocol Drivers (Datastax)
•

Java driver (with ORM)

•

.Net driver (Cql2Linq, ORM)

•

Python

•

C++ Driver – early stage of development

www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
Przykład – połączenie (driver .Net)
1. public class NerdMovie {
[PartitionKey] public string Movie;
[ClusteringKey(1)] public string Director;
public string MainActor;
public int Year;
}
2. var cluster = Cluster.Builder().AddContactPoints("192.168.13.1", "192.168.13.1").Build();
3. using (var session = cluster.Connect("test")){
var nerdMovieTable = session.GetTable<NerdMovie>();
nerdMovieTable.CreateIfNotExists();

www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
Zapytania
var batch = session.CreateBatch();
batch.Append(nerdMovieTable.Insert(
new NerdMovie() { Movie = "Serenity", Director = "Joss Whedon", MainActor = "Nathan Fillion", Year = 2005 }));
batch.Append(nerdMovieTable.Insert(
new NerdMovie() { Movie = "Pulp Fiction", Director = "Quentin Tarantino", MainActor = "John Travolta", Year
= 1994 }));
batch.Append(nerdMovieTable.Insert(
new NerdMovie() { Movie = "Zero Charisma", Director = "Katie Graham", MainActor = "Nathan Fillion", Year = 2013
}));

var query = from m in nerdMovieTable select m;

www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
Wywołanie synchroniczne
batch.Execute();
var result = query.Execute();
foreach (var e in result)
Console.WriteLine("Movie " + e.Movie + "[" + e.Director + "]");

www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
Wywołanie asynchroniczne
ManualResetEventSlim ev = new ManualResetEventSlim();
batch.BeginExecute((ar1) => {
batch.EndExecute(ar1);
query.BeginExecute((ar2) => {
var result = query.EndExecute(ar2);
foreach (var e in result)
Console.WriteLine("Movie " + e.Movie + "[" + e.Director + "]");

ev.Set();
}, null);
}, null);
ev.Wait();

www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
Co dalej? (driver .Net)
Protokół binarny: wersja 2 (Cassandra 2.x)
-

Batch

-

Autentykacja poprzez SASL

-

Lekkie transakcje – implementacja protokołu
Paxos
IINSER … IF NOT EXISTS,
UPDATE … IF <column>=<value>

-

Strumieniowanie wyników

www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
Driver C++ (w drodze)
1. Wieloplatformowość (np. embedded)
2. Oparty o boost::asio
3. Mała liczba zależności od innych
bibliotek

www.cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.
Kontakt

Cognitum | PL, Warszawa
office@cognitum.eu
+48 22 250 2541
www.cognitum.eu/semantics

abroad sales representatives:

Cognitum | CH, St. Gallen
swiss-office@cognitum.eu

www.cognitum.eu

Cognitum | UK, Bristol
uk-office@cognitum.eu

The company, product and service names used in this web site are for identification purposes only.
All trademarks and registered trademarks are the property of their respective owners.

More Related Content

Similar to Sterowniki .NET i C++ dla Apache Cassandra

DotNet Introduction
DotNet IntroductionDotNet Introduction
DotNet Introduction
Wei Sun
 
Parse cloud code
Parse cloud codeParse cloud code
Parse cloud code
維佋 唐
 
Use Eclipse technologies to build a modern embedded IDE
Use Eclipse technologies to build a modern embedded IDEUse Eclipse technologies to build a modern embedded IDE
Use Eclipse technologies to build a modern embedded IDE
Benjamin Cabé
 

Similar to Sterowniki .NET i C++ dla Apache Cassandra (20)

DotNet Introduction
DotNet IntroductionDotNet Introduction
DotNet Introduction
 
How to lock a Python in a cage? Managing Python environment inside an R project
How to lock a Python in a cage?  Managing Python environment inside an R projectHow to lock a Python in a cage?  Managing Python environment inside an R project
How to lock a Python in a cage? Managing Python environment inside an R project
 
DCEU 18: From Legacy Mainframe to the Cloud: The Finnish Railways Evolution w...
DCEU 18: From Legacy Mainframe to the Cloud: The Finnish Railways Evolution w...DCEU 18: From Legacy Mainframe to the Cloud: The Finnish Railways Evolution w...
DCEU 18: From Legacy Mainframe to the Cloud: The Finnish Railways Evolution w...
 
OWASP ZAP Workshop for QA Testers
OWASP ZAP Workshop for QA TestersOWASP ZAP Workshop for QA Testers
OWASP ZAP Workshop for QA Testers
 
HPC DAY 2017 | FlyElephant Solutions for Data Science and HPC
HPC DAY 2017 | FlyElephant Solutions for Data Science and HPCHPC DAY 2017 | FlyElephant Solutions for Data Science and HPC
HPC DAY 2017 | FlyElephant Solutions for Data Science and HPC
 
Easy way to learn Core java full material
Easy way to learn Core java full materialEasy way to learn Core java full material
Easy way to learn Core java full material
 
Corejava ratan
Corejava ratanCorejava ratan
Corejava ratan
 
PyCon AU 2012 - Debugging Live Python Web Applications
PyCon AU 2012 - Debugging Live Python Web ApplicationsPyCon AU 2012 - Debugging Live Python Web Applications
PyCon AU 2012 - Debugging Live Python Web Applications
 
C# Production Debugging Made Easy
 C# Production Debugging Made Easy C# Production Debugging Made Easy
C# Production Debugging Made Easy
 
Windows azure overview for SharePoint Pros
Windows azure overview for SharePoint Pros Windows azure overview for SharePoint Pros
Windows azure overview for SharePoint Pros
 
R sharing 101
R sharing 101R sharing 101
R sharing 101
 
Overview Of Parallel Development - Ericnel
Overview Of Parallel Development -  EricnelOverview Of Parallel Development -  Ericnel
Overview Of Parallel Development - Ericnel
 
Parse cloud code
Parse cloud codeParse cloud code
Parse cloud code
 
Docker practical solutions
Docker practical solutionsDocker practical solutions
Docker practical solutions
 
Use Eclipse technologies to build a modern embedded IDE
Use Eclipse technologies to build a modern embedded IDEUse Eclipse technologies to build a modern embedded IDE
Use Eclipse technologies to build a modern embedded IDE
 
C:\Alon Tech\New Tech\Embedded Conf Tlv\Prez\Sightsys Embedded Day
C:\Alon Tech\New Tech\Embedded Conf Tlv\Prez\Sightsys Embedded DayC:\Alon Tech\New Tech\Embedded Conf Tlv\Prez\Sightsys Embedded Day
C:\Alon Tech\New Tech\Embedded Conf Tlv\Prez\Sightsys Embedded Day
 
Opensourceman ( url for slides with animations https://goo.gl/R638tW )
Opensourceman ( url for slides with animations https://goo.gl/R638tW )Opensourceman ( url for slides with animations https://goo.gl/R638tW )
Opensourceman ( url for slides with animations https://goo.gl/R638tW )
 
RAGHUNATH_GORLA_RESUME
RAGHUNATH_GORLA_RESUMERAGHUNATH_GORLA_RESUME
RAGHUNATH_GORLA_RESUME
 
Skiron - Experiments in CPU Design in D
Skiron - Experiments in CPU Design in DSkiron - Experiments in CPU Design in D
Skiron - Experiments in CPU Design in D
 
John f kiser
John f kiserJohn f kiser
John f kiser
 

More from Cognitum

Cognitum dusseldorf 03_2012
Cognitum dusseldorf 03_2012Cognitum dusseldorf 03_2012
Cognitum dusseldorf 03_2012
Cognitum
 

More from Cognitum (11)

Introduction to Ontology Engineering with Fluent Editor 2014
Introduction to Ontology Engineering with Fluent Editor 2014Introduction to Ontology Engineering with Fluent Editor 2014
Introduction to Ontology Engineering with Fluent Editor 2014
 
Cognitum Ontorion: Knowledge Representation and Reasoning System
Cognitum Ontorion: Knowledge Representation and Reasoning SystemCognitum Ontorion: Knowledge Representation and Reasoning System
Cognitum Ontorion: Knowledge Representation and Reasoning System
 
Modeling Ontologies with Natural Language
Modeling Ontologies with Natural LanguageModeling Ontologies with Natural Language
Modeling Ontologies with Natural Language
 
Zarzadzanie wiedza dla zarządzania kryzysowego
Zarzadzanie wiedza dla zarządzania kryzysowegoZarzadzanie wiedza dla zarządzania kryzysowego
Zarzadzanie wiedza dla zarządzania kryzysowego
 
Technologie Semantyczne - Wykłady
Technologie Semantyczne - WykładyTechnologie Semantyczne - Wykłady
Technologie Semantyczne - Wykłady
 
Semantic Rules Representation in Controlled Natural Language in FluentEditor
Semantic Rules Representation in Controlled Natural Language in FluentEditorSemantic Rules Representation in Controlled Natural Language in FluentEditor
Semantic Rules Representation in Controlled Natural Language in FluentEditor
 
Nowoczesne technologie w naukach społecznych
Nowoczesne technologie w naukach społecznychNowoczesne technologie w naukach społecznych
Nowoczesne technologie w naukach społecznych
 
Application of Semantic Knowledge Management System in Selected Areas of Poli...
Application of Semantic Knowledge Management System in Selected Areas of Poli...Application of Semantic Knowledge Management System in Selected Areas of Poli...
Application of Semantic Knowledge Management System in Selected Areas of Poli...
 
Application of Semantic Knowledge Management System in Selected Areas of Pol...
Application of Semantic Knowledge Management System  in Selected Areas of Pol...Application of Semantic Knowledge Management System  in Selected Areas of Pol...
Application of Semantic Knowledge Management System in Selected Areas of Pol...
 
Cognitum dusseldorf 03_2012
Cognitum dusseldorf 03_2012Cognitum dusseldorf 03_2012
Cognitum dusseldorf 03_2012
 
Practical applications of controlled natural language with description logics...
Practical applications of controlled natural language with description logics...Practical applications of controlled natural language with description logics...
Practical applications of controlled natural language with description logics...
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 

Sterowniki .NET i C++ dla Apache Cassandra

  • 1. Sterowniki .NET i C++ dla Apache Cassandra www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 2. dr inż. Paweł Kapłański Cognitum p.kaplanski@cognitum.eu
  • 3. Cognitum Autoryzowany dystrybutor DataStax Enterprise w Polsce Dostarczamy: Big Data Cloud  Wysoce skalowalne aplikacje w chmurze  Rozwiązania Big Data  Systemy zarządzania wiedzą  Aplikacje dedykowane  Rozwój oprogramowania i testowanie aplikacji  Konsulting IT Semantics strong partnerships: Customers from: US, CH, FL, DE www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 4. Spis treści (Agenda) 1. 2. 3. 4. 5. 6. 7. Cassandra Jak działają stare sterowniki oparte o Thrift Asynchroniczność Binarny protokół klient-serwer w Cassandrze Przykład (driver .Net) Plany na przyszłość Driver C++ www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 5. Cassandra 1. noSql – BigTable (Google 2005) 2. Stworzona w FB – obecnie Apache 3. Rozproszona 4. Skalowalna - Duże (100PB) dane 5. Obecnie już istnieją instalacje po 1000 nodów 6. Symetryczna (odporna na awarie) 7. Klaster (możliwość instalacji „multidatacenter”) 8. Elastyczna – duże możliwości konfiguracji 9. CQL – Cassandra Query Language – podobny do SQL www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 6. Multidatacenter www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 7. Typowa aplikacja (serwis www .Net) www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 8. Ważne! 1. Driver to nie tyko „smart socket” - posiada rozbudowaną logikę działania 2. Driver zarządza połączeniami do klastra – load balancer 3. Użytkownik nie musi martwić się o połączenie i strategię – wystarczy ze użyje jednej z dostaraczanych np. RoundRobin 4. Driver potrafi automatycznie powtórzyć zapytanie w razie potrzeby 5. Można tworzyć własne strategie 6. Lock-free (wysoka wydajność) www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 9. Interfejsy C*: Thrift 1. IDL (interface definition language) 2. Pozwala na automatyczne generowanie kodu w różnych językach 3. Sam Thrift to nie wszystko – trzeba obsłużyć zapytania do klastra 4. Zapytanie blokuje połączenie (podobnie jak zapytanie http) w oczekiwaniu na odpowiedź www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 10. Interfejsy C*: Protokół binarny 1. Operacje asynchroniczne 2. Pojedyncze polaczenie do 128 jednoczesnych zapytan 3. Lepsze wykorzystanie zasobów (połączenia są kosztowne) 4. Cassandra może lepiej optymizować 5. Wsparcie dla programowania asynchronicznego – powszechne obecnie w podejsciu client-server 6. Zdarzenia z Cassandy są „pushowane” • zmiana schematu bazy • zmiana w topologii klastra www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 11. Wspierane języki 1. Native Protocol Drivers (Datastax) • Java driver (with ORM) • .Net driver (Cql2Linq, ORM) • Python • C++ Driver – early stage of development www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 12. Przykład – połączenie (driver .Net) 1. public class NerdMovie { [PartitionKey] public string Movie; [ClusteringKey(1)] public string Director; public string MainActor; public int Year; } 2. var cluster = Cluster.Builder().AddContactPoints("192.168.13.1", "192.168.13.1").Build(); 3. using (var session = cluster.Connect("test")){ var nerdMovieTable = session.GetTable<NerdMovie>(); nerdMovieTable.CreateIfNotExists(); www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 13. Zapytania var batch = session.CreateBatch(); batch.Append(nerdMovieTable.Insert( new NerdMovie() { Movie = "Serenity", Director = "Joss Whedon", MainActor = "Nathan Fillion", Year = 2005 })); batch.Append(nerdMovieTable.Insert( new NerdMovie() { Movie = "Pulp Fiction", Director = "Quentin Tarantino", MainActor = "John Travolta", Year = 1994 })); batch.Append(nerdMovieTable.Insert( new NerdMovie() { Movie = "Zero Charisma", Director = "Katie Graham", MainActor = "Nathan Fillion", Year = 2013 })); var query = from m in nerdMovieTable select m; www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 14. Wywołanie synchroniczne batch.Execute(); var result = query.Execute(); foreach (var e in result) Console.WriteLine("Movie " + e.Movie + "[" + e.Director + "]"); www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 15. Wywołanie asynchroniczne ManualResetEventSlim ev = new ManualResetEventSlim(); batch.BeginExecute((ar1) => { batch.EndExecute(ar1); query.BeginExecute((ar2) => { var result = query.EndExecute(ar2); foreach (var e in result) Console.WriteLine("Movie " + e.Movie + "[" + e.Director + "]"); ev.Set(); }, null); }, null); ev.Wait(); www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 16. Co dalej? (driver .Net) Protokół binarny: wersja 2 (Cassandra 2.x) - Batch - Autentykacja poprzez SASL - Lekkie transakcje – implementacja protokołu Paxos IINSER … IF NOT EXISTS, UPDATE … IF <column>=<value> - Strumieniowanie wyników www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 17. Driver C++ (w drodze) 1. Wieloplatformowość (np. embedded) 2. Oparty o boost::asio 3. Mała liczba zależności od innych bibliotek www.cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.
  • 18. Kontakt Cognitum | PL, Warszawa office@cognitum.eu +48 22 250 2541 www.cognitum.eu/semantics abroad sales representatives: Cognitum | CH, St. Gallen swiss-office@cognitum.eu www.cognitum.eu Cognitum | UK, Bristol uk-office@cognitum.eu The company, product and service names used in this web site are for identification purposes only. All trademarks and registered trademarks are the property of their respective owners.