influxdata / influxdb-client-java

InfluxDB 2 JVM Based Clients
https://influxdata.github.io/influxdb-client-java/
MIT License
441 stars 129 forks source link

Write API for Scala seems to be missing #125

Closed ioreskovic closed 2 years ago

ioreskovic commented 4 years ago

Write API for Scala seems to be missing. Is that a deliberate choice or an oversight?

I case of former, is it still in development, and if so, what is the Akka-friendly alternative?

bednar commented 4 years ago

Hi @ioreskovic,

We currently don't have implemented the write API in Scala. We want to have a Akka-friendly Write API and I hope so that we will have an enough time to implemented soon.

Could you describe your requirements? It will help us to implement what users want.

Regards

ioreskovic commented 4 years ago

Thank you for your response @bednar!

Well, looking at other use cases within alpakka connectors, I would like to see something along these lines:

Edit: Looking at alpakka-kafka, a unifying type such as Envelope a = Single a | Multi [a] | PassThrough (and their corresponding responses) might be more ergonomic, and then simple and batched flow(withContext) and could be replaced with a "flexiFlow(withContext)": Flow[Envelope[T, PT], Results[T, PT], Mat]

bednar commented 4 years ago

@ioreskovic thanks for detail info. It is huge inspiration for us! Thanks again.

funston commented 4 years ago

might consider changing the README to take out that write is supported?

"The reference Scala client that allows query and write for the InfluxDB 2.0 by Akka Streams."