Hey Kato,
Quick question on this... when using Cloud Functions to interact with the RTDB, the preferred method seems to be to use the Admin SDK, not the REST API... or am I wrong here? Would using the REST API inside of cloud functions be beneficial?
I've also been thinking recently that I'm not totally sure when a "connection" is established to the RTDB when using the admin SDK.
Does a connection get established with initializeApp, and after that it multiplexes that connection?
Or, does a connection get established each time we do something like `await admin.database().ref('some_ref').once('value')`
I've also been told that, for RTDB triggered functions, using snap.ref.root.child may be preferable over admin.database().ref('...')
It's all a tad confusing and it'd be useful to know techniques to optimize connections to the database.