Getting Started

Updated at: 2024-12-04 08:11

This topic helps you quickly connect to and use the Lindorm time series engine (LindormTSDB).

Procedure

The following figure shows the steps that you need to perform to develop your application by using LindormTSDB.

image
  1. Create a Lindorm instance. When you create the instance, specify the node specification and the number of nodes for LindormTSDB. For more information, see Create an instance.

  2. Configure a whitelist for the instance. For more information, see Configure whitelists.

  3. (Recommended) Enable the user authentication and permission verification feature for the instance. For more information, see User and permission management.

  4. (Optional) If you want to connect to LindormTSDB by using a public endpoint, apply for a public endpoint for LindormTSDB. For more information, see View the endpoints of LindormTSDB.

  5. Connect to LindormTSDB. The following table describes the methods that can be used to connect to LindormTSDB, the scenarios of the connection methods, and the documentation related to the connection methods.

    Connection method

    Scenario

    Reference

    Connection method

    Scenario

    Reference

    Lindorm-cli

    N/A

    Use Lindorm-cli to connect to LindormTSDB

    LindormTSDB SDK for Java

    LindormTSDB SDK for Java provides efficient and easy-to-use operations to manage underlying connections, write data in batches, and retry requests. In addition, LindormTSDB SDK for Java optimizes the encoding method for data transmission to improve write efficiency. We recommend that you use LindormTSDB SDK for Java to write data to LindormTSDB.

    Tutorial: Use LindormTSDB SDK for Java to connect to and use LindormTSDB

    JDBC Driver

    • The Java Database Connectivity (JDBC) API is used in the code of your application to connect to various heterogeneous databases.

    • An object-relational mapping (ORM) framework for data access such as MyBatis is included in the code of your application.

    Tutorial: Use the JDBC driver for Lindorm to connect to and use LindormTSDB

    HTTP API SQL

    If you develop non-Java applications, you can directly use the HTTP-based API to send SQL statements to LindormTSDB.

    Use the HTTP-based SQL API of LindormTSDB

    InfluxDB line protocol

    LindormTSDB is compatible with the format defined by the InfluxDB line protocol. For more information, see Line Protocol. You can use applications or devices that support the InfluxDB line protocol to write data to LindormTSDB.

    Write data by using the InfluxDB line protocol

  6. Develop your applications for various purposes, such as data modeling, data writing, data query, data pre-downsampling, and machine learning. For more information, see Developer guide.

  • On this page (1, O)
  • Procedure
Feedback