0

I'm using the mosquitto service

I add the user to the users list in the file to authentication users when user subscribe to broker

Now if the number of users in this file is more than 100,000

Will it bring a heavy burden to the mosquitto?

My users may be more than a million user

Also i try to restrict users to self topic so i have to add topic name and username to ACL

So acl file is heavy

How do i manager all users authentication and acl without any problem

Omid Aghakhani
  • 57
  • 2
  • 11

1 Answers1

1

For that many users a flat file is a REALLY bad idea, even if the data is converted into a easily searched data structure it will be a real problem to find users in the files to edit/remove.

This is exactly what the authentication plugin interface is for.

You can write your own using the API or JPMens has written a plugin that lets you keep the Username/Password and ACL in a selection of different databases (e.g. MySQL, Postgress, MongoDB, Redis...) .

hardillb
  • 54,545
  • 11
  • 67
  • 105