26
Технологии InterSystems для Extreme Transaction Processing Олег Оленин [email protected] Thursday, April 22, 2010

Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

Технологии InterSystems для Extreme Transaction Processing

Олег Оленин[email protected]

Thursday, April 22, 2010

Page 2: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

Технологии InterSystems для Extreme Transaction Processing

Олег Оленин[email protected]

Thursday, April 22, 2010

Page 3: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

Успешная компания с 1978 года• Штаб-квартира – Кембридж,

Массачусетс, США• Постреляционная СУБД Caché +

платформа для интеграции Ensemble + платформа real time BI DeepSee

• Оборот компании стабильно растет• Офисы в 22 странах мира• 10 лет в России, более 80 партнеров

Thursday, April 22, 2010

Page 4: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

Связь времен

• Web 2.0• NOSQL• Cloud Computing• Enterprise 2.0

• Caché СУБД для приложений Web 2.0

• Нереляционные модели представления данных

• Масштабируемость по требованию

Thursday, April 22, 2010

Page 5: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

Extreme Transaction Processing

• Большие потоки событий• Большое количество

источников данных• Большие объемы

обрабатываемых данных

• Критично время• Критична доступность

данных• Критична легкость

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

Gartner, eXtreme Transaction Processing:application style aimed at enabling the

Implementation of large-scale, business-critical, transactional applications on the basis of

distributed architectures …

Thursday, April 22, 2010

Page 6: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

XTP: области применения

• Высокопроизводительные приложения, обрабатывающие большие объемы данных и сообщений

• Приложения, для которых критична скорость реакции на внешние события

• Кластерные решения, вычислительная нагрузка в которых распределяется между узлами в зависимости от внешних событий, и использующие общие данные

Thursday, April 22, 2010

Page 7: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

Extreme Transaction Processing

• Data Caching• Messaging• Event Driven Architecture • Grid Computing• Complex Event Processing (CEP) • Java и .Net как платформы разработки• High performance processing

Thursday, April 22, 2010

Page 8: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

Caché eXTreme• Caché eXTreme:– Multi-dimensional Data Storage– eXTreme Event Persistence– Seamless Java Object Caching– IN-Process JDBC• CEDA (Complex Event Data Access)• CEP (Complex Event Processing)• OSGi (Java Dynamic Modules System)

Thursday, April 22, 2010

Page 9: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

Caché eXTreme. В чем отличие?

Thursday, April 22, 2010

Page 10: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

InterSystems eXTreme

Thursday, April 22, 2010

Page 11: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

eXTreme: Building Blocks eXTreme integrates the InterSystems Caché Database Persistent

Data Structure [Global] into the Java Runtime. eXTreme components In-memory Global API for Java (MDS) In-memory Java Database Connectivity (JDBC) In-memory Object and Data Access (XEP, JCACHE) JNI (Java Native Interface) bridges Caché, which in written in C++, to

Java via a standard API. All eXTreme components depend on JNI.

Java SE 6 (or 7)

Java Native Interface (JNI)InterSystems

Database

Thursday, April 22, 2010

Page 12: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

eXTreme: Building Blocks eXTreme integrates the InterSystems Caché Database Persistent

Data Structure [Global] into the Java Runtime. eXTreme components In-memory Global API for Java (MDS) In-memory Java Database Connectivity (JDBC) In-memory Object and Data Access (XEP, JCACHE) JNI (Java Native Interface) bridges Caché, which in written in C++, to

Java via a standard API. All eXTreme components depend on JNI.

Caché Global

JavaJava SE 6 (or 7)

Java Native Interface (JNI)InterSystems

Database

Thursday, April 22, 2010

Page 13: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

eXTreme: MDS MDS stands for Multi-dimensional Data Storage. MDS is an API directly on top of the Caché GLOBAL This is the absolute fastest way to access data from Java

To achieve this speed MDS is a “raw” API: Transactions are manual (optional) Locking is manual (optional) Database Objects or Object identity do not exist No SQL support

InterSystemsCaché

Java Native Interface (JNI)

MDS Java API

GLOBAL

Thursday, April 22, 2010

Page 14: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

Java SE 6 (or 7)

eXTreme: Architecture View

OSGi R4 Runtime InterSystems Java

InterSystemsCaché

xDBC Features

Java Native Interface Features

eXTreme can leverage OSGi to run in a dynamic and managed Java environment.

eXTreme exposes the native InterSystems Caché Database in-process to the Java SE.

Thursday, April 22, 2010

Page 15: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

eXTreme Event Persistence • eXTreme Event Persistence (XEP) is a lightweight API for low

latency Object and event stream data access. It seamless manages (n) data views from 1 Java object as it leverages Caché’s features.

Java Objects XEP Persistent Data Structure

SQL Table

Caché Object

Caché Global

Thursday, April 22, 2010

Page 16: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

Any signal processing with a data payload to persist. Data is generally in binary or encoded format with id markers

Stream data to be processed and persisted (Often text) Event Stream Processing Complex Event Processing

01010 01010 M MData Wire (From Source) 01010 M01010

event-1 event-3 event-3 Data Wire (From Source) event-4

eXTreme Event Persistence

Thursday, April 22, 2010

Page 17: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

eXTreme: CEP• Complex Event Processing needs to manipulate data. Enter

Complex Event Data Access (CEDA). CEDA provisions data to the CEP engine as an event source and provides a CRUD (Create, Read, Update Delete) data service. Event

Source

Event Sink

• Сервис хранимых событий для CEP• MDS, JCACHE, XEP, In-Process JDBC• The CEP engine Esper was chosen to

exemplify CEP and CEDA integration.

Thursday, April 22, 2010

Page 18: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

Database

eXTreme: Messaging Use the Building Blocks to enable the reliable high performance

messaging by integrating with any JMS or AMQP solution. Messaging Server

Messaging Clients

Wire Protocol

TCP / IP

Message Protocol

eXTreme

Thursday, April 22, 2010

Page 19: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

Distributed Caching • Технологии Distributed Caching все больше становятся

похожи на СУБД• Проблемы:

– ограничения по памяти в узле– время восстановления– отсутствие запросов

• Caché предоставляет альтернативное решение– ECP кластера– Больше памяти для JVM– Не только hashmap– Кэшируются блоки, а не объекты

Thursday, April 22, 2010

Page 20: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

eXTreme: Scalable Java Caching JCACHE leverages Caché’s native capability to scale past memory

limitations to disk access with only microsecond latency.

Java SE 6 (or 7) Caché Disk Data

Java memory (n) MB/GBN V N V

Disk space (n) MB/GB

Client Client Client

N = NameV = ValueN V N V N V N V N VN VN VN V

InterSystems JSR-107 (JCACHE API) based Implementation

Thursday, April 22, 2010

Page 21: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

Data Grid с использованием Caché

Thursday, April 22, 2010

Page 22: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

European Space AgencyCaché @ European Space Agency

• Goal: Make the largest, most precise 3-D map of our Galaxy• Monitor 1,000,000,000 stars over 5 years,

precisely charting position, movement, and brightness• Expected to discover

hundreds of thousands of new celestial objects

GaiaThursday, April 22, 2010

Page 23: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

European Space AgencyCaché @ European Space Agency

1,000,000,000 objectsX 100 observations per objectX 600 bytes per observation60,000,000,000,000 (60TB)

Solution: Caché, delivering 70,000+ sustained inserts per second per server, stored as real objects with SQL access

Challenge: Capture data for 1 billion celestial objects

Thursday, April 22, 2010

Page 24: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

InterSystems Cекретная технология Wall Street• Используют более 300 финансовых организаций• Типовое применение

– High Performance Financial Services Applications– Data Repositories– Data Grids– Complex Instruments– XML Databases

Thursday, April 22, 2010

Page 25: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

Caché @ Credit Suisse

OrderMgmt

Legacy• Собственное in-memory решение• Ограничения по памяти• Долгое воссановление после сбоев

• Трудно изменять• Нет запросов

Caché• Caché ECP и Light C++ binding

• Single- и multi-server масштабируемость

• 3 - 5x прирост производительности

• Быстрый старт и восстановление

• 50% сокращение расходов на hardware

Thursday, April 22, 2010

Page 26: Технологии InterSystems для Extreme Transaction Processingcitforum.ru/seminars/cbd2010/1_3_InterSystems.pdf · 4/22/2010  · Distributed Caching • Технологии

InterSystems Caché

• Enterprise Database Toolkit• Единый стек для работы с данными в XTP:

– распределенный кэш– высокоскоростное хранилище– три вида доступа к данным

• Если есть проблемы со скоростью, пишите:– [email protected]

Thursday, April 22, 2010