this is for your first issue.
for the second issue have a look at this Sending MQTT messages within notification limit