# Sentinel DataSource Nacos
Sentinel DataSource Nacos provides integration with [Nacos](http://nacos.io) so that Nacos
can be the dynamic rule data source of Sentinel.
To use Sentinel DataSource Nacos, you should add the following dependency:
```xml
com.alibaba.csp
sentinel-datasource-nacos
x.y.z
```
Then you can create an `NacosDataSource` and register to rule managers.
For instance:
```java
// remoteAddress is the address of Nacos
// groupId and dataId are concepts of Nacos
ReadableDataSource> flowRuleDataSource = new NacosDataSource<>(remoteAddress, groupId, dataId,
source -> JSON.parseObject(source, new TypeReference>() {}));
FlowRuleManager.register2Property(flowRuleDataSource.getProperty());
```
We've also provided an example: [sentinel-demo-nacos-datasource](https://github.com/alibaba/Sentinel/tree/master/sentinel-demo/sentinel-demo-nacos-datasource).