@vishalavalani, you mentioned in another topic that you’re thinking of using Node-Red.
If go down that route then you don’t need to run any Blynk code on your devices at all. My standard setup is to run Wi-Fi and MQTT code on my devices. The devices talk to my Node-Red server using MQTT and Node-Red talks to Blynk.
One advantage of this is that MQTT connection to Node-Red is much more accommodating in terms of cluttered void loops. Obviously you shouldn’t use this as a way of getting around bad programming, but there are some things, like waiting for data over a serial interface that are very difficult to do in the Blynk environment (unless you use @Lichtsignaal’s suggestion of utilising multiple cores within the ESP32.
If you’ve not already come across it, then you might find this topic useful…
Pete.