How are plugin functions accessed? (Synchronous, asynchronous?)

Hello everybody,

I’d like to know how Plugin-Functions are accessed.

If I got a Component Plugin and it gets a IQ send it will be handled in the handleIQGet or handleIQSet Method.

However, is this done asynchronous or synchronous?

I’d like to know about this so I know if I have to get a new Database Connection from the Pool every time I want to save or if I can just have one single connection for the whole plugin and use that.

I hope somebody can enlighten me here.

Thx in advance