Dynamics 365 Business Central: the mistery around the “Parallel Session Management” codeunit.


Codeunit 490 in Dynamics 365 Business Central acts as a job scheduler for the on-premises setup, deploying tasks across multiple NST sessions. This manual orchestrator relies on procedures like NewSessionRunCodeunit, funneling tasks through memory-mapped files for data sharing, but it falters in a SaaS environment for several reasons. Its design assumes sessions are cheap to occupy, memory is communal, and operations run on a single node—all mismatches for cloud services. The SaaS architecture's multi-tenancy and node distribution invalidate these designs, making traditional on-prem methods risky and inefficient. Instead of these outdated techniques, SaaS environments leverage node-agnostic, event-driven models like Job Queue entries and async/task execution. These alternatives accommodate cloud architectures' distributed nature, ensuring safe and efficient background task management without relying on outdated manual orchestrations like Codeunit 490.


Article 5w

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time