Develop With Oracle Transactional Event Queues
Develop microservices with Oracle Transactional Event Queues, which are compatible with Kafka, but much more.
Join the DZone community and get the full member experience.Join For Free
This article provides a quick tour of Oracle's Transactional Event Queues (TEQ) and so attempts to cover as much as possible at a high-level while giving quick, low-level, and code examples at the same time. There is quite a bit of material, and there are multiple workshops related to TEQ and its use in modern application development and microservices that can be found at the end of this piece.
This article corresponds to a 12-minute video that can be found here...
Oracle Transactional Event Queues (previously known as Advanced Queueing) has been around and widely used for decades (long before Kafka) and is well-harden technology. Here is a timeline to give an idea.
TEQ integration within the SQLcl command-line tool allows powerful and convenient administration within the shell, and REST APIs for TEQ, provided by Oracle REST Data Services, allow a convenient way to connect and view various queue characteristics without issuing any code. This also allows for creating simple user-friendly interfaces.
Monitoring of TEQ is provided by an Oracle database metrics exporter that is scraped to provide Prometheus metrics to Grafana for analysis, alerts, etc.
The event broker and event mesh architecture of TEQ provided a number of features including the ability to propagate messages even across regions, interoperate with Kafka brokers via Kafka Connector bridge, and even allow developers to program to the Kafka API while seamlessly using TEQ and the advantages it provides.
Finally, due to the fact that TEQ runs within the database, it has the very unique ability to conduct messaging and database operations within the same local transaction. This provides tremendous power and simplification for the developer, particularly in microservice environments where data integrity and transactional messaging guarantees are vital. I elaborate on this aspect in my blog Apache Kafka vs. Oracle Transactional Event Queues as Microservices Event Mesh.
I hope you get a better understanding of what TEQ has to offer after this quick tour.
You can learn more by checking out these workshops that contain labs showing much of the functionality described:
- Simplify Microservices with Converged Oracle Database
- Get started with Oracle AQ and Oracle TEQ events and messaging Workshop
- Simplify Event-driven Apps with TEQ in Oracle Database (with Kafka interoperability)
Finally, as always, please feel free to contact me with any questions or comments you have, and thanks for reading.
Opinions expressed by DZone contributors are their own.