This is my first article and i'm not writer, i am just JS developer, that's it
Sorry for my bad english, because i don't know english good
You realizing your idea with macBook, but one moment you feel hotness under your hand, but it's not good feels.
Yes, this article about few ways to fix this issue.
Close apps you don't use
Yes, first you can do is open Launchpad > Utilities > System monitor and click to CPU tab. Then check what application uses a lot of CPU and close that heavy app which you not using at current time and does not need in recent time
Use Fan Coolering app
I recommend purchasing this one, trust me, it's worth every cent of price
Check for battery status
Yes, really, when battery reaches 500 cycles (your battery may be different from my one), starting getting Hotter and hotter which in end result, your CPU becomes hotter and slower