If you are using Parallels for mac to run Windows OS for development purpose then these tips can help you to slightly increase the performance.
I am a full stack developer which means I have to work on different tools and IDEs day-in and day-out. While those tools and IDEs are there to help us develop quality products, they sometimes go crazy and decrease our productivity by taking more resources than they are actually supposed to take. Similar kind of thing was happening with me from quite some time when I was running Windows OS on the Parallels for Mac.
I had to run multiple instances of Visual Studio (mostly 3) along with MongoDB, SQL Server, Git bash and Postman. After running all this when I used to start my services to debug, chrome instances for swagger UI and command windows used to pop open further decreasing the Parallels performance running with 4 GB ram and 2 CPUs. Running local Kafka for EDA was cherry on the cake.
So we came up with a solution that we will run MongoDB docker container instance on Mac to run a local instance of MongoDB. Similarly, we decided to run a local instance of Confluent Kafka on Mac (will provide the setup details in my upcoming blog).
Though this proved to be really helpful still there was a lot of lag while debugging the services on Visual Studio. With Mongo and Kafka out of Parallels, I was left with SQL Server, Git bash, Postman and Chrome. Then I thought let's try and get rid of the last two as well. I didn't need the Swagger UI to remain open in Chrome because I was using Postman to hit the services. Also, I questioned myself if I can run Mongo on Mac and hit it from the services running on Parallels then why can't I hit the services from Postman running on my Mac?
And oh yes I forgot to mention it earlier I was working on .net core services and following the micro-service architecture (hence had to run multiple services).
I was able to answer my questions followed some simple steps and believe me, it has made my life much simpler. So here's what I did:
1. Stopped the swagger UI to open every time I started my web service
2. Changed the web-service application URL from localhost to the Parallels IP
"applicationUrl": "http://10.211.55.3:50352"