Amazon s database in the Cloud. Ralf Westphal, ralfw@ralfw.de, http://www.ralfw.de. Freier Autor, Berater, Entwickler und Trainer



Ähnliche Dokumente
Mein Name ist Legion

Microsoft Azure Fundamentals MOC 10979

Software Transactional Memory

Markus BöhmB Account Technology Architect Microsoft Schweiz GmbH

JONATHAN JONA WISLER WHD.global

HIR Method & Tools for Fit Gap analysis

ETHISCHES ARGUMENTIEREN IN DER SCHULE: GESELLSCHAFTLICHE, PSYCHOLOGISCHE UND PHILOSOPHISCHE GRUNDLAGEN UND DIDAKTISCHE ANSTZE (GERMAN

FEBE Die Frontend-Backend-Lösung für Excel

Mul$media im Netz (Online Mul$media) Wintersemester 2014/15. Übung 02 (Nebenfach)

AZURE ACTIVE DIRECTORY

Schöpfung als Thema des Religionsunterrichts in der Sekundarstufe II (German Edition)

Objektorientierte Datenbanken

Level 2 German, 2016

Number of Maximal Partial Clones

Killy Literaturlexikon: Autoren Und Werke Des Deutschsprachigen Kulturraumes 2., Vollstandig Uberarbeitete Auflage (German Edition)

Werbemittel-Spezifikationen

Karlsruhe Institute of Technology Die Kooperation von Forschungszentrum Karlsruhe GmbH und Universität Karlsruhe (TH)

LOG AND SECURITY INTELLIGENCE PLATFORM

Creating OpenSocial Gadgets. Bastian Hofmann

Amazon SimpleDB Cloud-Computing Seminar (CLCP)

Aus FanLiebe zu Tokio Hotel: von Fans fã¼r Fans und ihre Band

Backen mit Biskuit: Einfach, erfolgreich, die besten Rezepte (German Edition)

Infrastructure as a Service (IaaS) Solutions for Online Game Service Provision

WAS IST DER KOMPARATIV: = The comparative

Ein Stern in dunkler Nacht Die schoensten Weihnachtsgeschichten. Click here if your download doesn"t start automatically

Tuning des Weblogic /Oracle Fusion Middleware 11g. Jan-Peter Timmermann Principal Consultant PITSS

Next Generation Cloud

Universität Zürich und Open Access


Zum Download von ArcGIS 10, 10.1 oder 10.2 die folgende Webseite aufrufen (Serviceportal der TU):

file:///c:/users/wpzsco/appdata/local/temp/tmp373d.tmp.htm

PONS DIE DREI??? FRAGEZEICHEN, ARCTIC ADVENTURE: ENGLISCH LERNEN MIT JUSTUS, PETER UND BOB

Listening Comprehension: Talking about language learning

NOREA Sprachführer Norwegisch: Ein lustbetonter Sprachkurs zum Selbstlernen (German Edition)

Die Bedeutung neurowissenschaftlicher Erkenntnisse für die Werbung (German Edition)

Mash-Up Personal Learning Environments. Dr. Hendrik Drachsler

Konkret - der Ratgeber: Die besten Tipps zu Internet, Handy und Co. (German Edition)

Ägyptisch-Arabisch für Minimalisten: Schnell Arabisch lernen mit Lautschrift (German Edition)

Wer bin ich - und wenn ja wie viele?: Eine philosophische Reise. Click here if your download doesn"t start automatically

EEX Kundeninformation

Kurzanleitung um Transponder mit einem scemtec TT Reader und der Software UniDemo zu lesen

ONLINE LICENCE GENERATOR

Die Intrige: Historischer Roman (German Edition)

Nachtrag: Farben. Farbblindheit. (Light und Bartlein 2004)

Geometrie und Bedeutung: Kap 5

BartPE. Dokumentation. Projektarbeit Network Services. Dozent: Wolf-Fritz Riekert. Belmondo Kovac. Autor: Andreas Dinkelacker, 3.

Exercise (Part XI) Anastasia Mochalova, Lehrstuhl für ABWL und Wirtschaftsinformatik, Kath. Universität Eichstätt-Ingolstadt 1

Webbasierte Exploration von großen 3D-Stadtmodellen mit dem 3DCityDB Webclient

Das Zeitalter der Fünf 3: Götter (German Edition)

B I N G O DIE SCHULE. Bingo card: Classroom Items abcteach.com

Im Fluss der Zeit: Gedanken beim Älterwerden (HERDER spektrum) (German Edition)

XING und LinkedIn-Integration in das erecruiter-bewerberportal

Star Trek: die Serien, die Filme, die Darsteller: Interessante Infod, zusammengestellt aus Wikipedia-Seiten (German Edition)

Level 1 German, 2014

Mensch-Maschine-Interaktion 2 Übung 1

EVANGELISCHES GESANGBUCH: AUSGABE FUR DIE EVANGELISCH-LUTHERISCHE LANDESKIRCHE SACHSEN. BLAU (GERMAN EDITION) FROM EVANGELISCHE VERLAGSAN

Level 2 German, 2015

IT-Symposium. 2E04 Synchronisation Active Directory und AD/AM. Heino Ruddat

Grundkurs des Glaubens: Einführung in den Begriff des Christentums (German Edition)

Ein Maulwurf kommt immer allein PDF

Der Begriff Cloud. Eine Spurensuche. Patric Hafner geops

Martin Luther. Click here if your download doesn"t start automatically

Introduction to Azure for Developers MOC 10978

Preisliste für The Unscrambler X

Design mit CASE-Tools

Mein Name ist Legion

Apache HBase. A BigTable Column Store on top of Hadoop

CNC ZUR STEUERUNG VON WERKZEUGMASCHINEN (GERMAN EDITION) BY TIM ROHR

Ressourcenmanagement in Netzwerken SS06 Vorl. 12,

Exkursion zu Capgemini Application Services Custom Solution Development. Ankündigung für Februar 2013 Niederlassung Stuttgart

Wörterbücher von MS nach Ooo konvertieren

Max und Moritz: Eine Bubengeschichte in Sieben Streichen (German Edition)

PONS DIE DREI??? FRAGEZEICHEN, ARCTIC ADVENTURE: ENGLISCH LERNEN MIT JUSTUS, PETER UND BOB

Simple Cloud Storage API

Einsatz einer Dokumentenverwaltungslösung zur Optimierung der unternehmensübergreifenden Kommunikation

Fachübersetzen - Ein Lehrbuch für Theorie und Praxis

ROOT Tutorial für D. Liko

NEWSLETTER. FileDirector Version 2.5 Novelties. Filing system designer. Filing system in WinClient

+++ Bitte nutzen Sie die integrierte Audio-Funktion von WebEx (Menü Audio -> Integrated Voice Conference -> Start auswählen), um uns zu hören!!!.

Level 1 German, 2012

Hardwarekonfiguration an einer Siemens S7-300er Steuerung vornehmen (Unterweisung Elektriker / - in) (German Edition)

Die "Badstuben" im Fuggerhaus zu Augsburg

Communications & Networking Accessories

Bedienungsanleitung User Manual

Mission. TARGIT macht es einfach und bezahlbar für Organisationen datengetrieben zu werden

UM ALLE DATEN ZU KOPIEREN. ZUNÄCHST die Daten des alten Telefons auf einen Computer kopieren

LOAD TESTING 95% BRAUCHEN ES, 5 % MACHEN ES: LOAD TESTING MIT VS LEICHTGEMACHT NICO ORSCHEL MVP VS ALM, CONSULTANT

Microsoft SQL Server Überblick über Konfiguration, Administration, Programmierung (German Edition)

Materialien zu unseren Lehrwerken

Level 2 German, 2013

Visionen für die Betriebliche Weiterbildung

Die einfachste Diät der Welt: Das Plus-Minus- Prinzip (GU Reihe Einzeltitel)

Algorithms & Datastructures Midterm Test 1

Microsoft SQL Server Konfigurierung, Administration, Programmierung

Händler Preisliste Trade Price List 2015

Big Data Analytics. Fifth Munich Data Protection Day, March 23, Dr. Stefan Krätschmer, Data Privacy Officer, Europe, IBM

Contents. Interaction Flow / Process Flow. Structure Maps. Reference Zone. Wireframes / Mock-Up

There are 10 weeks this summer vacation the weeks beginning: June 23, June 30, July 7, July 14, July 21, Jul 28, Aug 4, Aug 11, Aug 18, Aug 25

Top-Antworten im Bewerbungsgespräch für Dummies (German Edition)

Workflow, Business Process Management, 4.Teil

Transkript:

SimpleDB Amazon s database in the Cloud Ralf Westphal, ralfw@ralfw.de, http://www.ralfw.de Freier Autor, Berater, Entwickler und Trainer www.prodevcollege.de There is more than Hierarchical databases Relational databases Object oriented database Associative databases 1

There are Tuple Spaces A tuple space is an implementation of the associative memory paradigm for parallel/distributed computing. from http://en.wikipedia.org/wiki/javaspaces Tuple Space Tuples with different cardinality Just simple operations Read Write Take Notify Find tuples through template matching query by example source: http://www.isima.fr/~ponge/cours/programmation-avancee-0708/projet.html 2

Enter Amazon SimpleDB Amazon SimpleDB is a web service for running queries on structured data in real time. Amazon SimpleDB data model 3

Normalization is out Store data the object way 4

SimpleDB data model details Domains» identified by a string (UTF-8)» 100/account (beta)» 10 GB/domain (beta) Items» identified by a string (UTF-8)» unlimited number/domain Attributes» name-value pair (both UTF-8)» type-less values, just strings; automatically indexed» 256/item» 250 mio./domain» 1KB/attribute value SimpleDB operations Domains CreateDomain* ListDomains** DeleteDomain* Items/Attributes PutAttributes* (store/change an item) DeleteAttributes* GetAttributes (retrieve an item) Query** *subject to eventual consistency **paged result set 5

Raw calls to SimpleDB REST or SOAP Authentication through AWS string key pair, HMAC-SHA1 signature, and WS-Security NSimpleDB to the rescue Open Source @ http://code.google.com/p/nsimpledb/ C# implementation of SimpleDB data model and operations Local storage of data Simple service API Allows access to local and online data through same interface ISimpleDBService Uses VistaDB (www.vistadb.net) for persistence Uses Amazon s.net SimpleDB library 6

Connecting to (N)SimpleDB Local tuple space SimpleDB Managing domains Paged access 7

Storing items/attributes Loading items/attributes 8

Deletings items/attriubtes Queries Proprietary query syntax Limited to one domain at a time ['Firstname' = 'Peter'] INTERSECTION ['City' = 'Berlin'] Queries retrieve item names only Attributes need to be loaded separately Use multiple threads for maximum performance! 9

Query syntax definition Query ::= ItemSetTerm { "UNION" ItemSetTerm }. ItemSetTerm ::= ItemSetFactor { "INTERSECTION" ItemSetFactor }. ItemSetFactor ::= [ "NOT" ] "[" PredicateExpression "]". PredicateExpression ::= PredicateTerm { "OR" PredicateTerm }. PredicateTerm ::= PredicateFactor { "AND" PredicateFactor }. PredicateFactor ::= [ "NOT" ] PredicateComparison. PredicateComparison ::= AttributeName ComparisonOperator AttributeValue. AttributeName ::= Chars enclosed in single quotes, e.g. 'Name'. All AttributeNames in a PredicateExpression need to be the same. All quotes in AttributeName need to be properly escaped. AttributeValue ::= Chars enclosed in single quotes, e.g. '003.14'. All quotes in AttributeValue need to be properly escaped. ComparisonOperator ::= "=" "!=" ">" ">=" "<" "<=" "STARTS-WITH". Querying and loading items 10

What s missing No transaction No notifications Use SQS to compensate? No sorting Do it on the client No joins Navigational access No datatypes Alphanumeric comparisons only Pad your values for sorting/comparison No blobs Use S3 for large attribute values Use multi-value attributes Eventual consistency What s it good for? Ad hoc data storage No setup/admini/backup required No schema Scalable data storage Amazon grows for you Read-mostly data E.g. discussion forums, meta-data Due to eventual consistency and lack of tx Read-write data If eventual consistency and lack of tx is no problem Operations are idempotent Structured data 11

Pricing Source: Amazon Summary Fundamental SaaS Flexible data model Think dynamic database for dynamic languages Simple, very simple API No adminstration needed Scalable Made for concurrent access Attractively priced Crucial features missing? Watch out for tuple spaces there are more to come 12

Questions? Resources Amazon, SimpleDB, https://aws-portal.amazon.com/ Amazon, SimpleDB Dokumentation, http://developer.amazonwebservices.com/connect/entry.jspa?extern alid=1107&categoryid=146 Ralf Westphal, SimpleDB Blog Serie, http://weblogs.asp.net/ralfw/archive/tags/amazon+simpledb/default. aspx Ralf Westphal, NSimpleDB Open Source Projekt, http://code.google.com/p/nsimpledb/ 13

Über den Referenten Ralf Westphal (www.ralfw.de) ist freier Softwaretechnologievermittler. Er arbeitet als Fachautor mit mehr als 300 Publikationen, Coach/Berater und Referent auf Entwickler-Events im In- und Ausland. Schwerpunkt seiner Arbeit sind die Architektur von.net- Software und die Förderung innovativer Softwaretechnologien. Bei der Wissensvermittlung beschreitet er gerne ungewöhnliche Wege, so zum Beispiel mit den Videoserien.NET TV und dotnetpro.tv und dem Trainingsunternehmen Professional Developer College (www.prodevcollege.de). Ralf Westphal ist Microsoft Visual Developer Solution Architect MVP und war von 1998 bis 2005 einer der unabhängigen Microsoft Regional Directors für Deutschland. Email: ralfw@ralfw.de www.prodevcollege.de www.prodevcollege.de Publications Bücher.NET kompakt, Spektrum Akademischer Verlag 2002, ISBN 3827411858 In Fachzeitschriften ADO.NET Datenbankprogrammierung, Addison-Wesley 2002, ISBN 3827319978 Jetzt lerne ich ADO.NET, Markt+Technik, 2003, ISBN 3827262291 (zusammen mit Christian Weyer) Video.NET 3.0 kompakt, Spektrum Akademischer Verlag 2007, ISBN 382741458X (zusammen mit Christian Weyer) www.dotnettv.de tv.dotnetpro.de 14