New group applications are now open from April 1st- April 30th.

Please note, we are currently not accepting applications in APAC, please check back when the next application cycle opens.

Chunking to overcome the Apex Heap Governor

Feb 22, 2022, 11:00 PM – Feb 23, 2022, 12:00 AM

By retrieving a heap-manageable chunk of the file at a time and combining on the client side, we are able to work within the apex heap limits.

About this event

The dreaded Salesforce governor! Have you ever needed to work with large files in apex, only to be harshly and suddenly shut down by the apex governor due to HEAP_LIMIT_EXCEEDED?

Consider this customer use case: Salesforce should callout to retrieve a 20MB file using service account credentials for authentication and make it available to download to the user. A client-side callout is problematic for several reasons, mainly security. A callout from apex would halt attempting to manage a file of this size.

Enter the chunking pattern! By retrieving a heap-manageable chunk of the file at a time and combining on the client side, we are able to work within the apex heap limits.

In this session we review the problem statement, review several options to overcome the apex heap, showcase the chunking pattern, show its elegance and simplicity, and finally review a customer implementation recently where this was used.

Speakers

  • Ray Dehler

    7Summits

    Technical Architect

  • Evan Heathcock

    7Summits

    Salesforce Developer

When

When

February 22 – 23, 2022
11:00 PM – 12:00 AM UTC

Agenda

Welcome and announcements
Presentation

Group Leaders

  • Mike Tetlow

    TaskRay

    Leader

  • Paul Fox

    PeakLogic

    Leader

  • Jeff Pearson

    Snowytree LLC

    Leader

  • Lauren LaMonte

    Atlassian

    Community Group Leader

Powered by

Trailblazer Community logo

Trailblazer Community

CONTACT US

Join your local Trailblazer Community Group, meet other developers & get best practices for building on the App Cloud

JOIN US