InfluxDB Cloud Serverless mobile app Integration

Hi, i have a question it might be confusing at first so please bear with me.

Background

my friend and I are making an mobile app that can monitoring an IoT device, we decided to split the work, he made the IoT device and i made the mobile app that can monitor that IoT device that my friend made.

i discover influxdb Cloud by chance and make a several test to see how it work. within that test i manage to input using mqtt and manage to send it to influxDB cloud and visualize by seeing the graph and table on Data Explorer.

after that test is done i wanted to know how influxdb cloud work as database, and make the app that will use data that had been transformed from influx db into the mobile app and make it so the mobile app can visualize (e.x graph and table) the data. but my search about it not coming to fruition.

Question

following the background statement i have several questions:
1. Since i’m using influxDB 3.x (cloud), is there a documentation about how to integrate InfuxDB 3.x into android mobile app in Kotlin Language?.
2. how do i make it so user using my app can see the data that the app visualize by login in using their account (e.x gmail,slack, … ,etc)?

Optional Questions:
3. influxdb v2.x integration using flux language in left link there repository about influxdb v2.s integration using flux, but i heard about it that flux language is in maintenance mode base on this link Future of Flux, is there another alternative beside using the flux language?

Hope

i hope with this topic, i as a newbie user of influxdb can have an answer to how can we integrate our database in influx with mobile app and maybe make a path so influxdb cloud can integrate with android easier

Hello @sin_356,

  1. So if you’re using InfluxDB Severless v3 the client library situation is a lil bit hectic rn. Basically you can query InfluxDB Cloud Severless v3 with flux using the kotlin client library: influxdb-client-java/client-kotlin at master · influxdata/influxdb-client-java · GitHub, so I might start there. (unforuntately you’ll have to learn some basic Flux to use it for querying. Flux is the query language for v2 but v2 only). However InfluxDB v3 Cloud Serverless actually uses the arrow flight for queries. Basically I’d read this to understand the client library situation with the different influxdb versions:
    Choosing a Client Library When Developing with InfluxDB 3.0 | InfluxData

That being said what I actually suggest is this:

Mixing java and kotlin in the same project and using the InfluxDB v3 Java Client:
Java client library for InfluxDB v3 | InfluxDB Cloud Dedicated Documentation.

  1. You can add a tag to your data for each user or a measurement for each user. I’d recommend using a measurement. Im verifying this for v3.
  2. Yes you can query with SQL and InfluxQL in InfluxDB v3. I wouldn’t invest energy in learning Flux or anything InfluxDB v2 related.

I hope this helps!

1 Like

So actually youll want to use a tag to differentiate users.
Where it might look like tag key = user tag value = user id

The limits for Cloud 3 for number of measurements are: for Serverless it is 500; for Dedicated Customers we will go higher than that, but not sure if we have ever went more than 10,000.

Max columns on Serverless is 200; for Dedicated the max is 2000, I believe. For one table/measurement.

1 Like