Comparing to restful API, using javascript API reduces JSON parse and can use all session functions. If we do this, I think we should publish a javascript/typescript connector package in npm (like a maven in java). By the way, I develop a simple grafanan iotdb plugin ( https://github.com/Genius-pig/iotdb) by using rest API ( https://github.com/apache/iotdb/pull/1716). restApi is more common, it transfers data through HTTP, so you can use it in any client in any language.
On Tue, Nov 10, 2020 at 2:35 PM Jialin Qiao <[email protected]> wrote: > Hi, > > Thank you for sharing the use case! Currently we do not have a JavaScript > API. > > However, since we use thrift [1] as the RPC framework, you could generate > the JavaScript API easily. > > Please refer to the usage of Python API [2] > > [1] https://github.com/apache/iotdb/tree/master/thrift > [2] https://github.com/apache/iotdb/tree/master/client-py > > Thanks, > -- > Jialin Qiao > School of Software, Tsinghua University > > 乔嘉林 > 清华大学 软件学院 > > > -----原始邮件----- > > 发件人: "Shi Jinghai" <[email protected]> > > 发送时间: 2020-11-09 13:29:42 (星期一) > > 收件人: "[email protected]" <[email protected]> > > 抄送: > > 主题: Re: Embdedded IoTDB Grafana Endpoint > > > > As I’m working on an edge system design, I’d suggest running IoTDB in > Node-RED environment and use Grafana in Node-RED. > > > > BTW, is there any Javascript connector ready for IoTDB? > > > > Shi Jinghai > > > > > > 发件人: Jialin Qiao<mailto:[email protected]> > > 发送时间: 2020年11月7日 12:22 > > 收件人: [email protected]<mailto:[email protected]> > > 主题: Re: Embdedded IoTDB Grafana Endpoint > > > > Hi, > > > > > I dislike the idea of having spring in the server as well. > > > > +1, could we combine the small handler with our RestAPI? > > > > Thanks, > > -- > > Jialin Qiao > > School of Software, Tsinghua University > > > > 乔嘉林 > > 清华大学 软件学院 > > > > > -----原始邮件----- > > > 发件人: "Julian Feinauer" <[email protected]> > > > 发送时间: 2020-11-06 22:38:50 (星期五) > > > 收件人: "[email protected]" <[email protected]> > > > 抄送: > > > 主题: Re: Embdedded IoTDB Grafana Endpoint > > > > > > Hey, > > > > > > yes, to do it clean we could do it directly without Spring. Then > ist just a very small handler. > > > Similar to what we already use optionally in the prometheus > module. > > > > > > I dislike the idea of having spring in the server as well. > > > > > > Julian > > > > > > Am 06.11.20, 12:03 schrieb "Xiangdong Huang" < > [email protected]>: > > > > > > Hi, > > > > > > > what do you think of an option to run the SimpleJson > Grafana Connector > > > directly in IoTDBs Server Context (could be disbaled by > default). > > > it is ok. > > > > > > But I think we need to prune some dependencies of Spring... > It it too large > > > now.. (I remember it is ~ 20MB to add such a module) > > > > > > Best, > > > ----------------------------------- > > > Xiangdong Huang > > > School of Software, Tsinghua University > > > > > > 黄向东 > > > 清华大学 软件学院 > > > > > > > > > Julian Feinauer <[email protected]> > 于2020年11月6日周五 下午6:13写道: > > > > > > > Hi folks, > > > > > > > > as we just discussed the prometheus integration, what > do you think of an > > > > option to run the SimpleJson Grafana Connector directly > in IoTDBs Server > > > > Context (could be disbaled by default). > > > > This would make it way easier for users to just „look“ > aat their IoTDB > > > > Data. > > > > > > > > WDYT? > > > > > > > > Julian > > > > > > > > > </[email protected]></[email protected]></ > [email protected]></[email protected]> > > > </mailto:[email protected]></mailto:[email protected]></ > [email protected]></[email protected]>
