---
title: Edge instances
tags: ThingsBoard
image:
disqus: hackmd
---
<!-- tags, title naming rule: https://thingsboard.io/docs/services/trainings/ -->
# Edge instances
:::info
* ThingsBoard Edge is a ThingsBoard’s software product for edge computing.
* ThingsBoard Edge seamlessly synchronizing with the ThingsBoard cloud.
* ThingsBoard Edge CE is single tenant and(or) single customer.
* We need to provision multiple ThingsBoard Edge instances for every tenant or customer.
* Open Source (Free) Solution
* **[ThingsBoard CE](https://github.com/thingsboard/thingsboard)** + ThingsBoard **[Edge](https://github.com/thingsboard/thingsboard-edge)** + ThingsBoard **[IoT Gateway](https://github.com/thingsboard/thingsboard-gateway)**
* ThingsBoard Edge [Roadmap](https://thingsboard.io/docs/edge/roadmap/)
:::

It allows bringing data analysis and management to the edge, where the data created. At the same time If this is your first experience with the edge we recommend to review what-is-edge and getting started guide.
https://thingsboard.io/docs/edge/getting-started-guides/what-is-edge/
## Edge deployment
:::info
對JWT使用之探討
:::
* ThingsBoard (demo.thingsboard.io): **Edge instances**

* ThingsBoard CE: **Edge instances**

* ThingsBoard PE: **Edge groups**

## ThingsBoard 使用情境
* ThingsBoard登入後取得JWT作為後續使用之認證媒介,時效預設為 9000 秒 ( 2.5 小時 ),並可在登入後使用RefreshToken,時效預設為604800秒 ( 1週 ),透過 Post - /api/auth/token,傳入JSON資料如下 ( refreshToken 開頭不須加Bearer )重新取得一組 Token
```
{"refreshToken": "refreshToken"}
```
* TB使用之JWT可透過 angular 套件 @auth0/jwt 的 JwtHelperService.decodeToken 取得登入資訊以及有效期限。
### h3 title 1
* ...
* ...
### h3 title 2
* ...
* ...
## h2 title b
* ...
* ...
## References
* [Facebook ThingsBoard Taiwan Group](https://facebook.com/groups/thingsboard)
* [Angular JWT](https://blog.angular-university.io/angular-jwt/)