ADB Adapter vs JDBC Palette Guidelines

10
ADB Adapter vs. JDBC Usage Guideline Copyright © 2006 Merck & Co., Inc. All Rights Reserved This document is the property of Merck & Co., Inc. and is intended for internal use only. Reproduction or transmission of this document in any form, in whole or in part, without prior written permission of Merck & Co., Inc. is prohibited. Page 1 of 10

description

ADB Adapter vs JDBC Palette Guidelines

Transcript of ADB Adapter vs JDBC Palette Guidelines

ADB Adapter vs. JDBC Usage Guideline

Copyright © 2006 Merck & Co., Inc.All Rights Reserved

This document is the property of Merck & Co., Inc. and is intended for internal use only.Reproduction or transmission of this document in any form, in whole or in part,

without prior written permission of Merck & Co., Inc. is prohibited.

Page 1 of 8

ADB vs JDBC Usage Guideline

Publication RecordVersion Revised/Issue

DateAuthor / Reviser

Description (official versions only)

0.1 02-20-2007 Rajendra Manche Initial Version0.2 03-05-2007 Sombabu

YenibaraAdded ADB Adapter with RV

Page 2 of 8

ADB vs JDBC Usage Guideline

Table of Contents

Executive Summary..........................................................................................................4

Executive Summary..........................................................................................................4Introduction.............................................................................................................4Objectives...............................................................................................................4Assumptions...........................................................................................................4

References........................................................................................................................4

Acronyms............................................................................................................................5

ADB Adapter VS BW-JDBC Palette.................................................................................5Adapter...................................................................................................................5BW Palette..............................................................................................................5

TIBCO Adapter for Active Databases Using RV............................................................7

Table of TablesTable 1: Reference Documents.........................................................................................4

Table 2: Acronyms.............................................................................................................5

Page 3 of 8

ADB vs JDBC Usage Guideline

Executive Summary

Introduction

This document describes general guidelines and recommendations as to when to use ADB Adapter and when one should use JDBC. This document also provides information on ADB via RV.

Objectives

The objective of this document is to present a guideline that will assist the designers and developers to decide when to use ADB Adapter compared with JDBC Activity.

AssumptionsThis document requires a pre requisite knowledge of TIBCO ADB Adapter and JDBC. This document is not meant to provide detailed information on ADB Adapter or JDBC Query.

References

Table 1 provides the documents referenced for creating this document.

Information Document URL VersionTIBCO BW Documentation

TBD

TIBCO ADB Documentation

TBD

Table 1: Reference Documents

Page 4 of 8

ADB vs JDBC Usage Guideline

Acronyms

Table 2 illustrates the acronyms used in this document.

ADB Active Database AdapterBW BusinessWorksDB DatabaseJMS Java Messaging ServiceRV Rendezvous

Table 2: Acronyms

ADB Adapter VS BW-JDBC PaletteThe Objective of this document is to provide guidance on the use and feature comparison of TIBCO Adapter for ActiveDatabase and BusinessWorks JDBC Palette. Listed features are driven primarily on type of connectivity, Ease of use, Monitoring, and Database support.

Feature Adapter BW Palette

Ease of Integration

Adapter consists design time and run time environments, which are to be managed separately.

JDBC palette for both run-time and design-time operates in the same way.

Completeness Adapter is a very scalable component to handle both inbound and outbound messages.

BW JDBC does not have a mechanism to detect database changes in a push environment.* Custom code required

Consistent error viewing and handling

Adapter is written using SDK and strictly adheres to standard error viewing and handling. Thereby making monitoring easy.

JDBC provides error objects and rules have to be written for error viewing and handling.

Transactions Volume

Adapters are useful in high-to-medium load situations for both real-time and batch-updates. Adapter can be run on the application machine using native lib.

BW palette are useful in medium-to-low level load real-time situation

ConnectivityDesign Time

JDBC JDBC

Connectivity Run-Time

ODBC JDBC

Transaction Support

When asynchronous operations are acceptable.

Useful when dealing with synchronous model and you need to take explicit action on transaction failure

SQL Statements Useful when you are using straight forward and simple SQL statements

Useful when the database operations are not straight forward i.e. the operations depend on a lot of "if..then..else" data

Page 5 of 8

ADB vs JDBC Usage Guideline

dependent clauses.Ease of Data Transformation, parsing and mapping

Data is transformed to desired protocol format (JMS etc) at the source. Parsing and mapping takes place in process flow.

Data transformation, Parsing and mapping takes place in process flow.

Result-set format ADB result-set JDBC result-set, useful if integrating with any 3rd party database custom application.

Exception Handling

If a subscriber adapter cannot write data to its destination table, it will write the data to the exception table

You have to implement exception handling in the process.

Database Support

Oracle, MS-SQL, Sybase, DB2 Embedded drivers are: tibcosoftwareinc.jdbc.oracle.OracleDr

iver tibcosoftwareinc.jdbc.sqlserver.SQLS

erverDriver tibcosoftwareinc.jdbc.sybase.Sybase

DriverThere are additional supported drivers, please see release doc for details

Ease of Monitoring

Adapter enabled with Hawk framework (admin) deployed as a service has much fine grain monitoring, configuration & management than JDBC activity.

Palette monitoring can be handled as embedded component in the process.

Component Management

Adapter is deployed as separate component from the process and requires management.

Palette is embedded in the process along with data parsing, mapping etc. and does not require separate deployment

Protocol support TIBCO EMS TIBCO EMSLoop Detection Adapter has embedded provision

to switch Loop detection on when trying to sync data between source and target applications.

Depending upon implementation may or may not require Loop Detection implementation.

Page 6 of 8

ADB vs JDBC Usage Guideline

Outbound Scenario - TIBCO Adapter for Active Databases Using EMSThe figure shows the outbound communication from the database to EMS. This is a scenario, which requires strict monitoring of specified tables for data changes. Using an adapter is preferred over using a BuisnessWorks JDBC palette due to following capabilities of the adapter:

Publish data by creating a copy. Publish by reference (without copying the data) Update both parent and child tables within a publication

TIBCO Adapter for Active Databases Using RV

The TIBCO Rendezvous transport provides two qualities of services: Reliable and Certified. In addition, a subscription service and Request Response service can be configured to use distributed queues for load balancing. The BuisnessWorks JDBC palette does not provide any of these facilities.

For request-response ADB service, the adapter provides an option to configure multi threading. An adapter instance performs load balancing within itself by allowing you to specify the number of threads that will be responsible for processing application requests.

A distributed queue is a group of cooperating transport objects, each in a separate process; each transport object is called a member.

Advantage of Adapter in RVDQ mode: Load Balancing is possible when using RVDQ.

Disadvantages of Adapter in RVDQ mode: Distributed queues do not use ledger files. Group members automatically require old

messages from certified senders and hence duplication of messages could occur High CPU Utilization.

Page 7 of 8

ADB vs JDBC Usage Guideline

Latencies will also suffer. RVDQ adds significant administration overhead for orchestrating messages. At some

point additional RVDQ Members can actually slow down processing, due to the communication overhead.

The figure below shows Request-Response Load Balancing:

Figure 1 : Load Balancing in ADB using Request-Response

Page 8 of 8