New to site?


Lost password? (X)

Already have an account?


(X)

Presents

#CSHARPCON20

The C# Corner Annual Conference 2020 is a three-day annual event for software professionals and developers.

3
DAYS
72
SPEAKERS
65
SESSIONS

Magnus Mårtensson
Microsoft Regional Director, Azure MVP, CEO Loftysoft

Avirag Jain
Director & CTO R Systems

Mahesh Chand
Founder C# Corner, CEO Mindcracker

Chris Gali
CEO & Co-Founder Graphite

Subinder Khurana
Chief Architect StoryProcess, Founder NASSCOM DeepTech Club

Bryan Rishforth
Investor, Chairman Graphite

Bryn Everson
Director Biz Dev Graphite

Raj Tiwari
Digital Transformation Leader, Futurist and Visionary

Joseph Guadagno
Microsoft MVP, Lead Quicken Loans

Nikita Sachdev
Entrepreneur, Blockchain Enthusiast & Advisor, Social Media Influencer

Doug Wagner
COO & Founder Adapt Technical Group

Ritesh Modi
Architect, Senior Evangelist, Cloud Architect

Crystal Wenrick
Director Communications Mindcracker

Allen O’Neill
Microsoft MVP, Consulting Engineer/Architect

Praveen Kumar
CEO MCN Solutions

Chris Love
Founder Love2Dev, Microsoft MVP, Author

Sanjay Vyas
Microsoft Regional Director, Microsoft MVP, Founder & CEO SkillLabs Technologies

Veena Sarda
Deep Learning Consultant, Author

Sekhar Srinivasan
C# Corner MVP, Microsoft Certified Trainer, Pluralsight Author

Lalit Bansal
Founder & CEO - EIY SYS

Navdeep Garg
CEO Revinfotech

Prakash Tripathi
Tech Manager/Leader, Microsoft MVP, Blogger

Bhavna Jain
Breakthrough Consultant

Naveen Sharma
Enterprise Architect, Leadership Coach, Author

Vidya Vrat Agarwal
Principal Architect, Microsoft MVP, Author

Sheetal Agarwal
Founder Clownselors, Medical Clown, Trainer

Abhishek Kant
Founder GTM Catalyst

Vishnu Saran
Founder & CEO VoiceQube

Sandeep Soni
Founder & CEO Deccansoft, Microsoft Certified Trainer

Parveen Malik
AVP InfoSec & Vulnerability Management, Information Security Expert

Nitin Pandit
Microsoft MVP, Developer Evangelist, Author

Niloshima Srivastava
C# Corner MVP, Tech Architect, Trainer, Blogger

Bala Chirtsabesan
Senior Software Engineer at Microsoft, Author

Manoj Mittal
Sr. Technical Architect, C# Corner MVP, Author

Chandni Di
Co-Founder Voice of Slum

Vithal Wadje
Technical Lead, Microsoft MVP, Author

Shivam Ahuja
Founder SkillCircle, Business Mentor

Chervine Bhiwoo
Solution Architect, Microsoft MVP, Author

Saurabh Jain
Vice President Paytm, Founder Fun2Do Labs, Author

Vinay Solanki
Head IoT at Lenovo, Founder IoT-NCR

Anshu kumari
Founder Blockchainkids, Inventor, Trainer

Amit Singal
CEO Startup Buddy

Dev Pratap
Co-Founder & CEO Voice of Slum

Amey Vartak
Technology Consultant, Full Stack Developer, C# Corner MVP, Author

Viswanatha Swamy
Principal Software Engineer, C# Corner MVP, Author

Sanket Verma
Research Engineer @ Ballistics (Forensics) and Chair, PyData Delhi

Sourabh Somani
Lead Developer, Microsoft MVP, Author

Abhishek Mishra
Software Architect, C# Corner MVP, Author

Siddharth Vaghasia
Technical Consultant, C# Corner MVP, Blogger

Bassam Alugili
Senior Software Specialist, Database Expert

S Ravi Kumar
Solution Architect, C# Corner MVP, Author

Sundaram Subramanian
Full Stack Developer, C# Corner MVP, Speaker

Deepesh Somani
Solution Architect, Microsoft MVP, Author

Debasis Saha
Technical Project Manager, C# Corner MVP, Blogger, Author

Vipul Jain
Software Architect, C# Corner MVP, Author

Akshay Patel
Technical Architect, Microsoft Certified Trainer, C# Corner MVP, Author

Stephen Simon
RPA Developer, Evangelist, Author

Vivek Sharma
Founder Kingster636, AR/VR Specialist

Jeetendra Gund
Technical Lead, C# Corner MVP, Author

Sujal Beniwal
AI Enthusiast, Student

M Viknaraj
Microsoft MVP, Azure Architect, Author

Prasham Sabadra
Software Architect, C# Corner MVP, Trainer, Author

Aakash Maurya
Senior Developer, C# Corner MVP, Speaker

Ankit Sharma
Senior Software Engineer, C# Corner MVP, Author

Mangesh Gaherwar
Team Lead, C# Corner MVP, Author

Viral Jain
Technical Consultant, C# Corner MVP, Author

Bhasker Das
Solution Architect, Evangelist

Manish Dwivedi
Associate Project Manager

Ck Nitin
Programmer, Author

Rohit Gupta
Technical Trainer, Author

Manish Tewatia
Full-stack Marketer, UX Designer

Bhavya Gaur
Technical Illustrator

Rohit Tomar
SEO/SMO Expert

Web Track

Cloud & Data Track

Dev Track

8am-9am

Registration & Breakfast

9am-10am

Future of Desktop Apps with JS (ElectronJs)

Nitin Pandit

Building Serverless Microservices Using Microsoft Azure

Vithal Wadje

Innovating RPA: A Robot for Every Person

Stephen Simon

10am-11am

Managing Cloud Storage Accounts using Logic Apps

Viknaraj Manogararajah

Data visualization using Python

Sekhar Srinivasan

Going Cross platform with AR Foundation

Vivek Sharma

11am-12pm

Keynote

12pm-1pm

Managing your Azure dependencies in ASP.NET Core apps using VS

Bala Chirtsabesan

Securing Applications on Intelligent Azure

Abhishek Mishra

Getting started with Blazor the Framework of Future

S Ravi Kumar

1pm-2pm

Lunch

2pm-2:45pm

Build Progressive Web Apps using Angular 9

Debasis Saha

Build and deploy to any platform using Azure DevOps

Chervine Bhiwoo

Deep Dive in Azure Service Bus

Akshay Patel

2:45pm-3:45pm

Build a Native Mobile Application using React Native and JavaScript

Joseph Guadagno

Making sense of Web Job, Web Job SDK and Functions in Azure

Prakash Tripathi

CloudFront Distribution in AWS

Viral Jain

3:45pm-4pm

Tea Break

4pm-4:30pm

Introduction to PowerBI

Aakash Maurya

Build Advanced SPFx solutions with React and Graph API

Siddharth Vaghasia

Build Business Intelligence Analyst (BIA) Skills

Sundaram Subramanian

4:30pm-5pm

Deep dive of Power Platform – AI BUILDER

Prasham Sabadra

Panel 1

What's new in SharePoint development

Vipul Jain

5pm-5:30pm

Build a SSO (Single Sign On) based Native JavaScript application with Microsoft Identity within 10 minutes

Manoj Mittal

Panel 2

Applications and working of AI

Veena Sarda

5:30pm-6pm

Deploying serverless API's with .Net core 3.0 on AWS & Azure

Amey Vartak

Panel 3

Blockchain with .NET Core (Ark)

Anshu Kumari

6pm-6:30pm

Closing Note & Prize Distribution

Dev Track

Cloud Track

Architecture Track

Emerging Tech Track

8am-9am

Registration & Breakfast

9am-10am

Creating Full-Stack Web Apps Using Server-Side Blazor

Ankit Sharma

Real time face recognition with MS Cognitive Services

Niloshima Srivastava

Building Scalable APIs with GraphQL

Jeetendra Gund

Future of development with AI and Blockchain

Navdeep Garg

10am-11am

Debugging Tips and Tricks with Visual Studio 2019

Joseph Guadagno

Azure Containers

Abhishek Kant

Enterprise Architecture

Naveen Sharma

Bot Framework - learn it fast and look like a boss!

Allen O’Neill

11am-12:30pm

Keynote

12:30pm-1:30pm

.Net Core & C# 8 Performance

David McCarter

Working with Azure kubernetes services

Ritesh Modi

Becoming an Architect

Vidyavrat Agarwal

Why Techies Need to Learn Product Management

Saurabh Jain

1:30pm-2:30pm

Lunch

2:30pm-3:30pm

Build a rules engine in .Net Core

Sanjay Vyas

Building CI and CD Pipeline using Azure DevOps

Sandeep Soni

Entity Framework Core - Tips and Tricks, Performance Optimization, and Tuning

Bassam Alugili

Hacking your way into Data Science

Sanket Verma

3:30-4:15pm

Speed up your .Net Core Website

Sourabh Somani

Azure

Magnus Mårtensson

Demystifying Open Distro for Elasticsearch

Suman Debnath

Future of Data

Shivam Ahuja

4:15pm-4:30pm

Tea Break

4:30pm-5:15pm

gRPC with C# and .Net Core

Mangesh Gaherwar

Panel 1

Essentials of Cloud security

Parveen Malik

Power platform and Dynamics 365

Deepesh Somani

5:15pm-6pm

Microservices - the gRPC Way

Viswanatha Swamy

Panel 2

Reserved

Reserved

6pm-6:30pm

Closing Note & Prize Distribution

Building a Batch Job Processor with Parallel.ForEachAsync

A batch job often looks deceptively simple: read a set of records, call a service for each one, and write the outcomes back. The difficulty appears when the set grows or each operation waits on the network. A sequential loop may leave most of the processing time unused, while an unbounded parallel loop can overwhelm a database, trigger API rate limits, or create a thundering herd.

Creating a batch job processor with Parallel.ForEachAsync in .NET 6 gives C# developers a compact way to overlap I/O-bound work while retaining explicit limits and cooperative cancellation. It is designed for independent items whose completion time varies, such as validating invoices against partner APIs or updating customer records held in several systems.

A production processor must define concurrency, isolate failures, preserve idempotency, and expose enough telemetry to explain what happened. The following design pays particular attention to the timing, operational customs, and commercial environment encountered by teams in Australia.

Why Async Parallelism Fits Batch Work

Parallelism improves throughput only when operations spend meaningful time waiting. If one worker retrieves a PDF from a partner endpoint, validates the payload, and posts a result, the worker is idle during most of that cycle. Running several such operations together keeps the network and downstream services busy without requiring multiple threads to perform CPU-intensive calculations.

Parallel.ForEachAsync is aimed at I/O-bound workloads. Each item is passed to an asynchronous callback together with a cancellation token. The runtime may have several callbacks in flight, but MaxDegreeOfParallelism sets the ceiling, so the job cannot silently create thousands of requests. The default is based on processor count, which may be a poor model for network concurrency, making an explicit value valuable for predictable load.

The distinction from Parallel.ForEach matters. The older API schedules synchronous work across processor partitions and is a good fit for calculations; it does not await network calls. For mixed workloads, measure the ratio of waiting to computation. Heavy JSON transformation or cryptographic work may justify another stage, while the API or database stage can remain asynchronous and bounded.

Designing a Reliable Batch Pipeline

Start with an item contract containing the identity of the work and the payload needed to process it. Keep orchestration outside the callback: read the queue, select eligible items, invoke the operation, and persist the outcome through separate services. This separation lets the same parallel engine handle invoices, notifications, and reconciliation without embedding database logic in the concurrency primitive.

Each item should carry a stable idempotency key, often a business identifier such as an invoice number rather than a random batch-generated value. If a worker completes the downstream change but fails before recording success, a retry must be safe. A processed-ledger table, conditional update, or provider-side idempotency header can prevent duplicate charges or repeated customer communications. This is especially valuable when a Sydney batch crosses a transient timeout in Melbourne hosting.

Some batches begin by matching imported reference strings to internal records. For a large, immutable in-memory collection, a Boyer–Moore search tutorial is useful background when assessing fast string matching, although hash-based lookups will usually be simpler for exact identifiers. Whichever method wins benchmarks, perform it before the parallel stage or reuse one shared lookup map across workers.

Comparing Concurrency Strategies

Concurrency mechanisms solve different problems, so choose according to the work profile rather than preference. A sequential loop is predictable for a handful of dependent records. Parallel.ForEach handles CPU-bound computation. Parallel.ForEachAsync suits waiting on external systems. A Channel with a fixed set of readers adds backpressure and is often preferable for a continuous stream whose arrival rate changes.

The comparison also depends on how work arrives. Parallel.ForEachAsync consumes an IEnumerable<T>, so a batch backed by an asynchronous producer may need materialisation or a bridging channel. A fixed collection suits a bounded background job; a channel suits continuous ingestion, dynamic routing, and controlled handoff between producer and workers.

Approach Workload profile Concurrency control Failure and ordering behaviour
Sequential loop with await Small or dependency-bound batches One item at a time Predictable ordering; an uncaught failure stops the loop
Parallel.ForEach CPU-bound computation Processor-based partitioned scheduling Efficient calculations; synchronous operations cannot await I/O
Parallel.ForEachAsync I/O-bound or mixed independent items Explicit MaxDegreeOfParallelism and cancellation Asynchronous completion; source order is not guaranteed
Channel with worker tasks Streaming input and dynamic routing Channel capacity and worker count provide backpressure Flexible routing and recovery, with additional coordination

For the job described here, Parallel.ForEachAsync provides the strongest balance of simplicity and control. The processor can process an in-memory collection without introducing a producer-consumer framework, while still supporting cancellation, bounded concurrency, and per-item error capture. If requirements expand to dynamic routing, multiple destinations, or continuous input, the channel-based approach becomes easier to evolve.

Implementing the .NET 6 Processor

The core API accepts a source sequence, a ParallelOptions instance, and an asynchronous delegate. Supply the cancellation token through the options and pass the token supplied to the delegate into every downstream call. A modest starting concurrency is usually safer than a high number: eight or sixteen workers can expose a dependency’s rate limit quickly, even when each individual request is inexpensive.

The following implementation catches ordinary item failures, records them, and lets genuine cancellation unwind the batch:

using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

public sealed record BatchItem(string Id, string Payload);

public sealed record BatchResult(
    string Id,
    bool Succeeded,
    string? Error = null);

public static async Task<IReadOnlyList<BatchResult>> ProcessAsync(
    IEnumerable<BatchItem> items,
    Func<BatchItem, CancellationToken, Task> processItem,
    int maxConcurrency,
    CancellationToken cancellationToken = default)
{
    ArgumentNullException.ThrowIfNull(items);
    ArgumentNullException.ThrowIfNull(processItem);

    if (maxConcurrency < 1)
        throw new ArgumentOutOfRangeException(nameof(maxConcurrency));

    var results = new ConcurrentBag<BatchResult>();

    Func<BatchItem, CancellationToken, Task> worker = async (item, token) =>
    {
        try
        {
            await processItem(item, token);
            results.Add(new BatchResult(item.Id, true));
        }
        catch (OperationCanceledException) when (token.IsCancellationRequested)
        {
            throw;
        }
        catch (Exception ex)
        {
            results.Add(new BatchResult(item.Id, false, ex.Message));
        }
    };

    await Parallel.ForEachAsync(
        items,
        new ParallelOptions
        {
            MaxDegreeOfParallelism = maxConcurrency,
            CancellationToken = cancellationToken
        },
        worker);

    return results.ToArray();
}

Each callback can update only its own item, so one failed invoice does not corrupt unrelated results. The ConcurrentBag is thread-safe, but its enumeration order is not the source order. If stable ordering is required, store each result against its original index and sort once after processing. Exception messages should also be sanitised before being persisted or returned outside the service boundary.

Retries belong inside the operation passed to the processor, where the application can apply its own backoff and idempotency rules. Holding a worker slot during a long retry reduces throughput, so retries must be bounded and paired with jitter. Similarly, cancellation only works when HTTP, database, and storage calls observe the supplied token.

Running Batches Reliably in Australia

Australian deployments add details that should appear in the batch configuration. Sydney and Melbourne are common hosting and integration hubs, while Brisbane and Perth operations may sit in different business hours. ACST, AEST, and AEDT change relative to Coordinated Universal Time, and daylight-saving transitions can duplicate or remove local hourly slots. Store timestamps in UTC, retain the IANA time zone for display, and test jobs around those transitions.

The local market also shapes reporting. Australian finance teams commonly reconcile batches in AUD and apply GST rules to taxable invoices, so keep currency and tax treatment out of generic worker code. Local engineering customs favour explicit runbooks, peer review, and clear ownership during business hours; encode those expectations in launch approvals and escalation paths rather than treating them as informal habits.

Observability completes the design. Record item identifiers, attempt counts, durations, status codes, and aggregate throughput while avoiding sensitive payloads in logs. Emit counters for accepted, completed, failed, retried, and cancelled items so a dashboard can distinguish a slow dependency from a job that has stopped. A bounded retry policy with exponential backoff and jitter prevents a recovering service from receiving a sudden duplicate burst.

Before processing:

  • Validate the source count, required fields, duplicates, and dependency readiness.
  • Select MaxDegreeOfParallelism from provider limits, database capacity, and load-test results.
  • Confirm that every retried operation has a stable idempotency key.

During and after processing:

  • Record a durable outcome for every accepted item, including the final failure reason.
  • Propagate cancellation to queued and active operations, then preserve partial results.
  • Reconcile source, completed, failed, and skipped counts before releasing the batch lock.

With those controls in place, the accelerator is Parallel.ForEachAsync, while bounded concurrency, safe retries, cancellation, and auditable outcomes keep the processor dependable across Australian operating environments.

The Leela Ambience Convention Hotel

1, CBD, Maharaj Surajmal Road, Near Yamuna Sports Complex, Delhi, 110032

KNOW MORE

GENERAL QUERIES


Manish Tewatia

+91-9718-431-042

TICKET QUERIES


Atul Gupta

+91-9910-125-804