/UrlShortner-DistributedSystem-

distributed url shortner project designed for highly scaled scenarios

Primary LanguageC#

Url_Shortner_Project

  • How to run the project?

    1- First of all create a network in your docker using following command: docker network create miniurlproject

    2- Then run the docker compose file.

    3- After that run the follwoing command in your terminal: docker exec -it mongo-replica-container mongosh --eval "rs.initiate({_id:'rs0', members: [{_id:0, host: 'mongo-replica-container'}]})"

    4- You could ensure the replicaset is initated properly by running this command: docker exec -it mongo-replica-container mongosh --eval "rs.status()"

    5- Done :)

    • Flow Of Creating A New ShortUrl Flow Of Creating A New ShortUrl