# Firebase realtime db blocs vs cloud variables

**URL:** https://community.thunkable.com/t/firebase-realtime-db-blocs-vs-cloud-variables/1690641
**Category:** Questions about Thunkable X
**Created:** [January 24, 2022, 8:28am UTC](https://community.thunkable.com/t/firebase-realtime-db-blocs-vs-cloud-variables/1690641 "2022-01-24T08:28:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)
#### Post date: [January 24, 2022, 8:28am UTC](https://community.thunkable.com/t/firebase-realtime-db-blocs-vs-cloud-variables/1690641/1 "2022-01-24T08:28:40Z")

</div>

Hi

a precision ! should we preferably use realtime database blocks rather than cloud variables with StP UI?

---

<div class="post-metadata">

### Author: ![tanishq](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanishq/32/124339_2.png) [@tanishq](https://community.thunkable.com/u/tanishq)
#### Post date: [January 24, 2022, 9:36am UTC](https://community.thunkable.com/t/firebase-realtime-db-blocs-vs-cloud-variables/1690641/2 "2022-01-24T09:36:15Z")

</div>

cloud variables are easy to use and work the same as real time db do

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 24, 2022, 11:08am UTC](https://community.thunkable.com/t/firebase-realtime-db-blocs-vs-cloud-variables/1690641/3 "2022-01-24T11:08:01Z")

</div>

If you want to use retrieve data without having to wait for the retrieval time (asynchronous) then use the blocks.

If you prefer to be sure that data has been retrieved before continuing execution of the code (synchronous) then use the cloud variables.

If in the other hand, you want to use the `Listener` feature for dynamic keys then you can only use the blocks.

So, the bottom line is what do you want to achieve would normally dictate the method to use.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [April 24, 2022, 11:08am UTC](https://community.thunkable.com/t/firebase-realtime-db-blocs-vs-cloud-variables/1690641/4 "2022-04-24T11:08:26Z")

</div>

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