2013-02-02 02 Нелюбин. Почему NoSql

Post on 07-Jul-2015

250 views 9 download

Tags:

Transcript of 2013-02-02 02 Нелюбин. Почему NoSql

Почему NoSQL

NoSQL

SQL

NoSQL DEFINITION:Next Generation Databases mostly addressing some of the points: being non-relational, distributed, open-source and horizontally scalable.

The original intention has been modern web-scale databases. The movement began early 2009 and is growing rapidly. Often more characteristics apply such as: schema-free, easy replication support, simple API, eventually consistent / BASE (not ACID), a huge amount of data and more. So the misleading term"nosql" (the community now translates it mostly with "not only sql") should be seen as an alias to something like the definition above.

http://nosql-database.org/

NoSQL

SQL

NewSQL

NewSQL

"NewSQL" is our shorthand for the various new scalable/high performance SQL database vendors. We have previously referred to these products as 'ScalableSQL' to differentiate them from the incumbent relational database products. Since this implies horizontal scalability, which is not necessarily a feature of all the products, we adopted the term 'NewSQL' in the new report.

And to clarify, like NoSQL, NewSQL is not to be taken too literally: the new thing about the NewSQL vendors is the vendor, not the SQL.

Matthew Aslett

NoSQL, NewSQL and Beyond

http://www.infoq.com/news/2011/04/newsql

Когда SQL не хватает?

SQL мешает?

Модели представления данных

● Tabular○ Relational○ BigTable○ Column-oriented

● Key-Value○ Multi-Value

● Document● Object● Graph

○ RDF

High Load

Вертикальное масштабирование

Оптимизация кода

Оптимизация БД

● Оптимизация запросов● Оптимизация индексов● Денормализация● Тюнинг

Кэширование

There are only two hard things in Computer Science: cache invalidation and naming things.

Phil Karlton

Горизонтальное масштабирование

Репликация

Репликация

● потеря целостности

● данные должны помещаться на один сервер

● излишние копии данных

● масштабирование чтения

Шардинг

Шардинг

● нет joinов● нет foreign key● накладные

расходы● низкая

надежность

● масштабирование чтения и записи

● Big Data

RTB

RTB - Real Time Bidding

DSP - Demand Side PlatformSSP - Supply Side PlatformAd Exchange - биржа

Publisher - площадка для показа рекламыAdvertiser - рекламодатель

RTB

High Load● десятки тысяч запросов в секунду● 100ms на ответ

Big Data● миллиарды записей● десятки тысяч новых записей в день

Datacenter Awareness

Дружба

Как живет продукт

Спасибо

Вопросы?