GithubHelp home page GithubHelp logo

titodotnet / azure-servicefabric-sample Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 4.0 40 KB

azure service fabric sample

License: MIT License

PowerShell 20.68% C# 79.32%
azure-service-fabric time-trigger scheduler autofac quartz-net

azure-servicefabric-sample's Introduction

azure-servicefabric-sample

Introduction

This repository is aimed to hold Azure Service Fabric related samples.
Azure Service Fabric Servies can be configured to exhibit trigger based bahvior similar to WebJobs and Azure Functions. Have added a code samples to exhibit such behavior (Detailed below).

Solutions

Time triggered / Scheduler Service in Azure Service Fabric (ServiceFabricTriggerSolution)

To create a time triggered (scheduler) Service in Azure Service Fabric, I can think of following two quick options among the possible ways.

  1. Create a time triggered WebJob and add/deploy it as a guest executable in Azure Service Fabric.
  2. Create Azure Service Fabric Stateless Service and implement the listener to handle jobs.

Here I'm taking the second approach which involves the respective listener to be created. Rather than writing new Scheduling framework, I'm using the Quartz.Net framework. I'm using the CRON expression behavior to have the behavior inline with the time trigger behavior of WebJobs and Azure Functions.

SimpleTimeTriggerService
  • Uses Quartz.Net framework.
  • Without Dependency Injection.
  • Listerner gets all the IJob types from the current assembly with JobInfoAttribute decorated.
  • JobInfoAttribute holds the name and CRON expression of the job.
TimeTriggerService

azure-servicefabric-sample's People

Contributors

titodotnet avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.