Share variable between events

I'm currently working on a plugin that requires a piece of information to be shared between events. I've been looking over some articles, but don't see an appropriate way to do this. Essentially I have a connection object that needs used in every event. Rather than having to create a new object for every event (there is going to be a high volume of events coming through), I would like to use this single connection object for all of the events coming through.

Is this something that is even possible?

Hello,
maybe if you only need fields of the object in every event, store this object in elasticsearch and use the elasticsearch-filter-plugin to join the information to every new event :wink:

I hope it is helpful :wink:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.