添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
爱搭讪的手套  ·  Lemon-Duck ...·  2 月前    · 
豪情万千的台灯  ·  All poetry commands ...·  4 月前    · 
留胡子的水龙头  ·  Index of ...·  4 月前    · 
Please use the form below to provide your feedback. Because your feedback is valuable to us, the information you submit in this form is recorded in our issue tracking system (JIRA), which is publicly available. You can track the status of your feedback using the ticket number displayed in the dialog once you submit the form.

The Eventing Service handles data changes that happen when applications interact. These changes in data are known as document mutations, and include operations such as insert, delete, update, and expiration.

You can use the Eventing Service to:

You can also use the Eventing Service to scale your business logic and streamline your business workflows. The Eventing Service lets you:

Increase customer engagement by managing business logic across different applications in a timely manner

Scale your throughput without making changes to your data configuration and infrastructure

Create specialized tools to clean, enhance, and transform your data

Maximize your return on investment (ROI) by minimizing your total cost of ownership (TCO)

Test, debug, and troubleshoot on a single platform instead of on multiple applications

The Eventing Service can run one or more Eventing Functions in your database to handle data changes according to a real-time Event-Condition-Action model. Eventing Functions are standalone JavaScript fragments that trigger in real time as a response to document mutations. When you create, update, or delete documents, or when these documents expire, your Functions handle and process these events.

You can use Eventing Functions to:

Unlike Message Queue or Polling-based external systems, the Eventing Service is native to Couchbase Server. This means you do not need to use multiple applications to track data mutations.

The following table compares the implementation of the Eventing Service with the Message Queue method.

Native to Couchbase Server. Does not need a new layer to propagate data changes.

Needs an additional layer to propagate data changes.

Eliminates the dual-write problem. Multiple application servers can perform simultaneous write operations.

Has a dual-write problem. Every write operation gets pushed twice, once to the message queue and the second time to the cluster.

Eliminates the write-failure condition.

A write-failure condition can happen at any point.

Integrates with native debugger support.

No easy debug option during troubleshooting.

Provides a centralized control for aspects such as data auditing and data governance, reducing data leakages.

Leads to inefficient data governance and data leakages.

No additional expenses, so TCO is reduced.

Has added license, infrastructure, and deployment expenses, which increases TCO.

Can record and propagate data changes to a database, message queue, end-point, or to another bucket inside the Couchbase cluster.

Needs multiple applications to record and propagate data changes.

Handles data mutations in real-time.

Batch systems are highly inefficient and are not reactive.

Implements as a state-less compute operation and utilizes latest trends in compute (multi-core CPU).

Consumes a lot of CPU resources.

No code duplication.

Leads to code duplication across multiple infrastructure applications.

Provides easy horizontal and vertical scaling options with built-in support.

Difficult to scale as you need to scale for applications and transport layer requirements.

You can use the Eventing Service to track data changes in many different domains. For example, you can design a custom workflow to track a user’s credit limit, usage currency, and risk propositions when that user makes a credit card transaction. You can also create a workflow that automatically maintains a set stock threshold and triggers new stock replacements when that stock runs out.

The following table provides use cases for the Eventing Service.

Card transaction

Transaction threshold

Generates risk alerts and quarantines user when they hit the transaction threshold.

Inventory and warehousing

New sales voucher

Stock availability

Generates invoice to replenish stock.

New purchase order

Saved wishlist

Alerts user about price drops for wishlist items.

Airline

New booking

Booking history

Enrolls user in frequent flyer programs and notifies them about special promotions.

Enquiry

User profile

Alerts user about price drops for airline tickets.

Healthcare

New report

Check for vitals

Schedules an appointment for the user.

Sports and gaming

New user creation

User profile

Generates notifications about leaderboard and other statistics.

Media and entertainment

Breaking news

Query archives

Enriches existing news with archival information.

© 2024 Couchbase, Inc. Couchbase, Couchbase Lite and the Couchbase logo are registered trademarks of Couchbase, Inc. Terms of Use Privacy Policy Cookie Policy Support Policy Marketing Preference Center