How to test load balanced ASP Core based website?

I have a simple ASP Core based website that is connected to my local SQL Server Express, some of the third party plugins used, do have reliance on other products i.e. scheduling timers. I would like to test this site to ensure when it is on a Load Balanced environment it would work as expected. For that reason i have Installed and configured docker. Created a Dockerfile within the website Created an image of my site. The site is using host.internal as part of the connection string for SQL Express The site runs from docker and connects to the database which is hosted on my machine. I have 2 websites (one hosted locally and the other from the image/container in docker). One database. Both sites connect to the same database. After further research i believe i need to setup a load balancer next but confused as after reading more into it, some have it so the docker (or at least the way i think the recommend approach is) setup should mimic what i need to test and to open up ports. What would be the next recommended step in this journey to get the site tested? I know this maybe an open question but if i can see which way i need to head then that would really help.

May 7, 2025 - 13:11
 0

I have a simple ASP Core based website that is connected to my local SQL Server Express, some of the third party plugins used, do have reliance on other products i.e. scheduling timers.

I would like to test this site to ensure when it is on a Load Balanced environment it would work as expected. For that reason i have

  • Installed and configured docker.
  • Created a Dockerfile within the website
  • Created an image of my site.
  • The site is using host.internal as part of the connection string for SQL Express
  • The site runs from docker and connects to the database which is hosted on my machine.

I have 2 websites (one hosted locally and the other from the image/container in docker). One database. Both sites connect to the same database.

After further research i believe i need to setup a load balancer next but confused as after reading more into it, some have it so the docker (or at least the way i think the recommend approach is) setup should mimic what i need to test and to open up ports.

What would be the next recommended step in this journey to get the site tested? I know this maybe an open question but if i can see which way i need to head then that would really help.