Wednesday, August 26, 2009

Data Integration in 5 minutes

Data integration between multiple disparate sources is now as simple as writing SQL code in your application as if all your schema (tables, views and procedures) from different databases are co-located in a single data source.

No, I am not talking horizontal partitioning of your data that have same schema defined in all the databases that some other tools support. You can have segments of data to your liking or the way they were given to you. That not all, you can even add text files to this mix and use them as another source that is participating in data integration. All this is doable with Teiid.

All you have to do is to define the "data source(s)" you would like to integrate in a Teiid configuration file and configure Teiid as your JDBC data source in your application and start writing your application, which may be a simple JDBC or Hibernate application.

Sounds simple huh? Thanks to a new feature called "Connector Supplied Metadata", which is being introduced in the Teiid 6.2 release. This feature is so powerful that using it you can write a single EJB that reads or writes data to/from multiple sources, or you can write Hibernate application with single "Session Factory" that has domain objects from multiple different sources, where you can write Hibernate HQL query that joins two tables from different sources.

So What? Teiid had this capability all along!

Yes, you are right. There is nothing new in terms of additional capabilities of Teiid, it always supported data integration as its core capability. What is new is how it does it, and how flexible it is, and how fast you get from problem to the solution. Prior to Teiid 6.2 release in order to integrate two or more sources in Teiid the following steps must have to be taken.




Step 1: Using Teiid Designer, you need to import and create Source models

Step 2: Using the Teiid Designer, you need to create a VDB and add model files to VDB and configure the "Connectors" for the sources.

Step 3: Deploy into Teiid runtime.

Now, contrast the above scenario to below

as you can see the complete "modeling" step and building a VDB is eliminated (Step 1&2 from above) and metadata that is required for data integration is imported dynamically at runtime and working models are built automatically using "Connector Supplied Metadata" feature. However, user still needs to supply a configuration file where they can specify information about their sources! This configuration file called "Dynamic VDB". And you are required to deploy this configuration file into Teiid runtime engine.

This model does have its pros and cons, and may not suit all the data integration needs.

Pros
  • Metadata about your source imported dynamically at runtime, you have an option to cache after the first import.
  • No static model of your metadata, so it can keep changing as you change the source structure.
  • No Teiid Designer tool to use, cutting down on time and learning curve with Designer.
  • No VDB, i.e no custom artifacts to define your metadata, just define a simple XML file with your favourite editor.
  • Possible to write dynamic discovery of sources and integrate them on the fly.

Cons:
  • You can not define virtual tables, procedures composing of multiple sources.
  • You can not define a single view of your data.
  • Many enterprise features may not be available.
  • Currently only JBDC and Text based sources are supported, but more coming soon.
Teiid still supports both the Designer based VDB and Dynamic VDB modes. If you need a simple and quick data integration use the "Dynamic VDB", otherwise use the Teiid Designer to create a virtual database as before, after all it is all about flexibility.

So, next time you think about combining data from your Excel sheet with your Oracle data, do not custom code the integration layer, use Teiid instead. Give it a try! and let us know what you think. Thank you for reading.

You can check out a quick example here.

Thanks.

Ramesh..

Monday, August 17, 2009

Announcing the Teiid Mid-America Media Blitz

There are upcoming Teiid presentations at JBossWorld in Chicago on Friday, September 4 @ 9:45 and at The Strange Loop in St. Louis on Thursday, October 22 @ 11:40. These will go into more detail about the engine internals than the introductory booth demo from the last post. If you can attend either session, feel free to stop by with any questions - otherwise stay tuned and we'll post the slides.

The Teiid Team

Teiid Booth Demo from JavaOne

We did a quick demo of Teiid and Teiid Designer in the JBoss booth at JavaOne. The demo is an expanded look at our quick start and highlights our ease of use as a JDBC source in Eclipse Data Tools and Hibernate. Check out the videos here:

Part1: http://www.youtube.com/watch?v=Fejt8LsmOtI

Part2: http://www.youtube.com/watch?v=9fpI3zwfd5Y

Part3: http://www.youtube.com/watch?v=aF8G3ZKLuAc

The Teiid Team