HttpResolver use the same instance name "DEFAULT", so if multiple consumers or producers use different name server domains, the snapshot file will be overwritten and mixed. When the name server domain is unavailable, this can result in consumption or production to the wrong units.
resolver := NewHttpResolver("DEFAULT", nameServerDommain)
// this will change the instance name
dc.option.ChangeInstanceNameToPID()
HttpResolver use the same instance name "DEFAULT", so if multiple consumers or producers use different name server domains, the snapshot file will be overwritten and mixed. When the name server domain is unavailable, this can result in consumption or production to the wrong units.