Best practice about named volume in Swarm

I found an example, someone did the same thing Need design help on DB approach: named volume vs data containers so I guess this is a good practice?