Prototype project to showcase capabilities of Azure Service fabric. Project integrates .NET Core web API and stateless service, Azure storage account, Twilio API and Azure service fabric. Built on top of Microservice queue architecture. This project is capable of running fully on your local DEV environment.
What's included:
- Live prototype of a SMS gateway
- Implantation of a Azure service fabric queue architecture
- Sateless ASP.NET Core web API and service
- Uses
Swagger
to simplify API development by adding documentations and etc... - Uses
Twilio
to send out SMS - Uses
Queue Storage
to implement microservice queue architecture
After setting up your local DEV environment, you can clone this repository and run the solution. Make sure to wire up your own Twilio account.
You'll need the following tools:
- Azure Service Fabric SDK
- Azure Storage Emulator
- Azure Storage Explorer
- Git
- .NET Core, version
>=2.2
- Visual Studio, version
>=2017
First clone this repository locally.
- Install all of the the prerequisite tools mentioned above.
- Run below mentioned scripts.
- Setup your local Service fabric cluster using "Cluster manager".
- Connect your Azure storage account into Azure storage explore
link
Or use default emulator storage account.
With Visual studio:
Open up the two solutions using Visual studio.
- Add your Twilio Account SID and Auth KEY into config files in processor solution
Hint: Local.5Node.xml.. etc
. - Add your cloud storage connection string if any.
- Restore solution
nuget
packages. - Rebuild solution once.
- Publish solution using your desired publish profile.
- Open the local
swagger
- Post a proper message contract using swagger
Run below scripts on windows powershell
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser
- to enable service fabric script execution.AzureStorageEmulator.exe init /server <SQLServerInstance>
- setup storage emulator locally for the first time.AzureStorageEmulator.exe start
- to start storage emulator locally.
Azure Service Fabric Repo
Azure Storage Repo
Licensed under the MIT license.