如题,HTTP 方式的授权,有缓存机制或白名单吗?现在有个高频发布消息的topic,每次订阅或发布都要调用 认证服务器接口,认证服务器吃不消啊,也影响发布速度
当然是有的
cache = {
# # The maximum count of ACL entries can be cached for a client.
# #
# # Value: Integer greater than 0
# # Default: 32
max_size = 32
# # The time after which an ACL cache entry will be deleted
# #
# # Value: Duration
# # Default: 1 minute
ttl = 1m
}
文档也说过
https://nanomq.io/docs/en/latest/config-description/acl.html#example-configuration
这个之前试过了,好像不生效,每次发布消息,仍然会发起http_auth 模块 super_req、http acl_req 中配置的接口进行acl判断
试了下确实不对HTTP Auth生效,那这就是个feature request了 后续会增加
好的,感谢,持续关注中