Can I dynamically choose which topics to replicate?

AMPS requires you to specify the topics to replicate at configuration time, and does not currently allow you to change that specification without restarting AMPS.

However, AMPS supports regular expressions in the topic name for both transaction logging and replication. You can create a pattern for replicated topics, and then any topic that matches that pattern will be automatically logged and replicated.

For example, the configuration snippet below records and replicates JSON messages published to any topic name that begins with /orders/important or /archive/. There is no need to explicitly specify all of the topics to replicate, and if a publisher begins publishing to a new topic that matches the pattern, those messages will be logged and replicated.



Keywords: replication configuration, replication topics, dynamic topic replication, regex topics

Last updated