CD203 How to Port an Existing Solution to SAP HANA with the Maximum Benefit Michael Bechauf, HANA Platform Product Management Disclaimer This presentation outlines our general product direction and should not be relied on in making a purchase decision. This presentation is not subject to your license agreement or any other agreement with SAP. SAP has no obligation to pursue any course of business outlined in this presentation or to develop or release any functionality mentioned in this presentation. This presentation and SAP's strategy and possible future developments are subject to change and may be changed by SAP at any time for any reason without notice. This document is provided without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in this document, except if such damages were caused by SAP intentionally or grossly negligent. © 2013 SAP AG or an SAP affiliate company. All rights reserved. 2 Agenda HANA Overview What is the spectrum of applications that can be built ? What tools are available ? What is deep integration with HANA ? Case Studies Airport security system Social media analytics Overview of a HANA ISV porting project Project timeline Development methodology © 2013 SAP AG or an SAP affiliate company. All rights reserved. 3 Introduction What is the HANA ecosystem ? HANA – the open development platform Fast, extensible, multi-purpose Previous use of HANA ERP Accelerator New business applications Analytics tools Now: HANA as a real-time, in-memory database Independent of ERP, beyond traditional business applications Custom analytics visualizations Custom applications can be built on open interfaces (JDBC, ODBC) Developer support with free developer licenses Easy starting point by HANA hosting in the Amazon cloud Dedicated support for innovative ISV companies © 2013 SAP AG or an SAP affiliate company. All rights reserved. 5 HANA Overview Quick walkthrough of the HANA capabilities and technological foundation HANA as a database for ISV applications You could choose to look at HANA as just a very fast In Memory database … © 2013 SAP AG or an SAP affiliate company. All rights reserved. 7 HANA as a database for ISV applications … but you would be giving away a key competitive advantage © 2013 SAP AG or an SAP affiliate company. All rights reserved. 8 HANA Overview Data Modeling SQL R Integration + Column and row store Predictive analytics Math Libraries SQL interface on columns & rows T In-memory Compression Multi-core/ parallelization Text Retrieval & Exploration Application Server Scripting © 2013 SAP AG or an SAP affiliate company. All rights reserved. 9 SQL Column and Row Store DBs typically use a row-based storage; SAP HANA supports rows, but is optimized for column-order data organization Order 456 457 458 459 Country France Italy Italy Spain Product corn wheat corn rice Sales 1000 900 600 800 456 France corn 1000 457 Italy wheat 900 458 Italy corn 600 459 Spain rice 800 Row order organization 456 457 458 459 France Italy Italy Spain corn wheat corn rice Column order organization © 2013 SAP AG or an SAP affiliate company. All rights reserved. 1000 900 600 800 Single-record access: SELECT * FROM SalesOrders WHERE Order = ‘457’ Single-scan aggregation: SELECT Country, SUM(sales) FROM SalesOrders WHERE Product=‘corn’ GROUP BY Country 10 HANA – Developer Scenarios 1. Business Analytics with HANA Develop business analytics scenarios on top of HANA using Business Objects tools. Analytics a) load data HANA c) build analytical apps using BOBJ tools/sdk b) model 2. JDBC/SQL Programming HANA Develop applications on top of HANA using JDBC and SQL New Apps JDBC/ODBC d) Build custom apps using JDBC/ODBC against HANA a) load data HANA c) Use SQL Script or advanced libraries (e.g. Predictive Analytics) b) model © 2013 SAP AG or an SAP affiliate company. All rights reserved. 11 HANA – Developer Scenarios 3. HANA Apps Develop lightweight apps directly on HANA Apps a) load data HANA d) Build apps using JavaScript/XS/HTML5 c) Use SQL Script or advanced libraries (e.g. Predictive Analytics) b) model © 2013 SAP AG or an SAP affiliate company. All rights reserved. 12 Algorithmic complexity Lower-level languages like Java or C# are more expressive and powerful, but run outside of HANA in memory engine Modeling Key to performance breakthroughs is parallel execution close to data SQL Script HANA programming environment is optimized towards these properties System-defined functions Trade-off between performance optimization, TCO and simplicity of solution (Business Function Library, Predictive Analytics Library) © 2013 SAP AG or an SAP affiliate company. All rights reserved. 13 Trade Offs Increasing use of HANA by an ISV application All logic on Application Server Relational DB schema (without Stored Procedures) All logic on Application Server HANA only used as a relational column-store database Some logic on Application Server HANA modeling and scripting used to push processing towards data No Application Server All processing done in a stateless application HTML 5 Relational diskbased row store database SAP HANA Starting point At best an intermediate step towards a real HANA application. Validate the schema, identify issues (e.g. constraints, triggers). Breakthrough performance is not expected ! © 2013 SAP AG or an SAP affiliate company. All rights reserved. Application server tier ideally becomes only used for UI rendering. However, high algorithmic complexity may force break-up of business logic between HANA and application server tier Extremely low latency Perfect for lightweight analytical applications Less useful for transactional application that require state and session management 14 Case Studies Airport Security System Social Media Analytics Airport security management AlertEnterprise Goal: Real-time analytics of securityrelevant events Analyze the potential threat from legitimate access to security-relevant facilities Understand the context of an security event Provide alert as it happens and help respond Results Processing of thousands of parallel events possible Simplification of overall architecture (replace rule engine and CEP engine) © 2013 SAP AG or an SAP affiliate company. All rights reserved. 16 Social Media Analytics Next Principles Goal: Real-time analytics of social media events (Tweets, FB) Currently, Java based solution No real-time analytics Limited in terms of data volume Limited in granularity of analysis Approach: Use text analytics to parse Tweets, move logic into HANA as much as possible Results Text analytics in HANA Rendering stays as a HTML 5 rendering component in Java © 2013 SAP AG or an SAP affiliate company. All rights reserved. 17 Value proposition for “good” ISV applications Delivering across 5 dimensions of modern decision-processing Deep Complex & interactive questions on granular data Broad High Speed Big data, many data types Fast response-time, interactivity Real-time Recent data, preferably real-time © 2013 SAP AG or an SAP affiliate company. All rights reserved. Simple No data preparation, no preaggregates, no tuning 18 HANA and Open Source Many ISV solutions right now use open source databases or infrastructure to manage Big Data Hadoop for storage and cluster management Cassandra : Fault-tolerant key-value store running on a cluster Memcached: Distributed in memory cache MongoDB: Schemaless distributed storage of JSON documents CouchDB: Storage of large documents Couchbase: Commercial CouchDB including in memory caching Undoubtedly, open source offers many advantages, but HANA has a sweet spot Pre-integrated solution removes the necessity to build infrastructure from open source components Real-time analytics by means of column store design and in memory performance Predictable processing times by means of parallel processing of complex algorithms SQL as a language makes migration of existing systems easier And of course – the SAP ecosystem © 2013 SAP AG or an SAP affiliate company. All rights reserved. 19 A HANA Porting Project Infrastructure, timeline, success factors Getting started … Utilize HANA in Amazon AWS Quick way to get started Free Performance degradation only for large databases and complex algorithms Define a business scenario that makes sense for HANA Decide whether to do a full HANA port, or limit to certain sub-functions Remember that HANA OLTP performance will likely not exceed that of an existing database Understand the porting effort Algorithmic complexity Use of proprietary databases features (particularly stored procedures, triggers, sequences, constraints) © 2013 SAP AG or an SAP affiliate company. All rights reserved. 21 Timeline and success factors Begin with a simple schema migration Don’t worry about replication techniques just yet, just do a simple CSV import Move some parts of your schema over Familiarize yourself with HANA modeling and scripting methodology Expose data through JDBC/ODBC and connect your application server Test certain parts of your application functionality end-to-end with HANA sideby side Decide on the final setup Migrate the whole schema and use HANA as your OLTP database, or do you prefer a side-by-side model ? Trade-off between porting effort and TCO Success Factors Clearly understand how to differentiate your HANA application in the market © 2013 SAP AG or an SAP affiliate company. All rights reserved. 22 If HANA is not the OLTP database – set up Data Replication SAP BusinessObjects tools SAP Business Suite Trigger Based, Real Time Log Based Real Time Extractor Batch Event Streams Real Time Data Sources © 2013 SAP AG or an SAP affiliate company. All rights reserved. SQL BICS SQL MDX SAP In-Memory Computing Studio SAP BOBJ Data Services Sybase Replication Server Trading & Order Management Systems DB Connection ETL, Batch SAP BW Non SAP Data Sources SAP LT Replication Server Other query tools SAP HANA Direct Extractor Connection** Sybase Event Stream Processor * * Sybase ESP-5.1SP1, Q4-2012 ** SAP ERP & BW Extractors ODBC SAP In-Memory Database ECDA/ODBC Calculation and Planning Engine Row & Column Storage Http/Https In memory DSO ODBC Activation Queue XS Engine SAP HANA 23 Further Information SAP Public Web https://experiencesaphana.com/community/startups http://developer.sap.com SAP Education and Certification Opportunities www.sap.com/education Watch SAP TechEd Online www.sapteched.com/online © 2013 SAP AG or an SAP affiliate company. All rights reserved. 24 SAP TechEd Virtual Hands-on Workshops and SAP TechEd Online Continue your SAP TechEd education after the event! SAP TechEd Virtual Hands-on Workshops SAP TechEd Online Access hands-on workshops post-event Available January – March 2014 Complementary with your SAP TechEd registration Access replays of keynotes, Demo Jam, SAP TechEd LIVE interviews, select lecture sessions, and more! View content only available online http://saptechedhandson.sap.com/ © 2013 SAP AG or an SAP affiliate company. All rights reserved. http://sapteched.com/online 25 Feedback Please complete your session evaluation for CD203. Thanks for attending this SAP TechEd session. © 2013 SAP AG or an SAP affiliate company. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. National product specifications may vary. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices. © 2013 SAP AG or an SAP affiliate company. All rights reserved. 27
© Copyright 2024