locked
Use a single instance of azure file storage connection for multiple windows service RRS feed

  • Question

  • We have multiple windows services to be run on azure cloud environment. These services will connect to a cloud fileshare storage and download the file to their local folder and process it. This service connection happens in every 2 min to cloud storage.

    Having multiple service, there will be multiple connect/disconnect to cloud storage service that may cost to service performance.

    Can we create a one instance of connection to cloud storage which will remain open and can be used my multiple services without making each service to make connection? Please confirm.

    Wednesday, June 19, 2019 10:03 AM

All replies

  • when you say "These services will connect to a cloud fileshare storage and download the file to their local folder and process it. This service connection happens in every 2 min to cloud storage." Could you help us, how you are connecting to storage account? for example are using Azure CLI, powershell..etc?

    Please explain and provide more information on your environment to help better on this



    Thursday, June 20, 2019 6:01 AM
  • Thanks for reply Yaswanthm!!

    As mentioned, we have implemented windows services using vb.net/C# language. With windows azure libraries, we have implemented code for windows service to connect storage account. The purse of these services is to pick the file, process it and save data in the database. Each services has its own file type for process.

    Each service connect storage cloud every 2 munutes. We are looking something common like singleton which each service can use to get connected to storage service. He purpose is to avoid multiple connection hit to storage which may cost to performance.

    Thursday, June 20, 2019 12:34 PM