Preview Mode Links will not work in preview mode

ColdFusion Alive


Aug 27, 2020

Gert Franz talks about “Cool Lucee CFML (GigaBytes file parsing and more)” in this episode of the CF Alive Podcast, with host Michaela Light.

Show notes

  • Why are you using Lucee at DistroKid
    • Fast, Secure, Scalable with cloud
    • Node → Lucee 
    • Bitbucket pipelines
    • CommandBox
    • TDD
    • AWS autoscaling
  • Tell us something about DistroKid
  • CF performance tuning
    • Know your data
      • Keep common lookups in memory (structure)
    • One background file parsing process went from 330 hours to 2 hours!
  • What is the advantage of Lucee over other languages
    • CFLoop File=fileName
      • 20 GB text files
      • Index, Item 
      • Array of values from separators (eg comma-separated data etc)
      • Uses much less memory than CFFILE Read which sucks the whole file into memory
    • Lucee tasks 
      • Can continue automatically if server crashes
    • ParseCSV
      • OnBody
      • OnHeader
      • OnFooter
    • Asynchronous Queries to database (for Logging etc)
      • Loggin analytics to
        • Elk
        • Logly
      • Log events are added to a queue then batch added to the database in the background
      • <cfquery async=true listener=component|closure>
    • Query Listeners
      • Checks for async query errors
      • SQL manipulation pre-running query
    • Mail Listeners
      • Email pre-send events
      • On error event
      • Update headers in email for test server
    • Future listeners
      • CFHTTP calls
    • Lucee LEX extensions
      • Minimum install is 21 MB - add extensions for optional features such as PDF processing, image processing etc
        • → Fast load time
      • 25-30 extensions
      • Extensions can be written in CFML or Java
    • Lucee 6 faster load time
      • Goal < 0.5 second
    • Blue-Green deployment strategy to cloud cluster
    • Allowing CFTag in CFScript
      • All CF tags have script equivalents - just remove the <CF and > part and add {s 
      • Add trip ticks (‘’’) for code
      • Why cfscript
        • less code
        • less output of whitespace 
        • Other developers who know JavaScript can code CFscript
      • Avoid EnableCFOutOnly and other whitespace workarounds in CFML
    • Strict mode - require scoping
    • Lucee hidden features
  • Programming language choice
    • .Net “free” or expensive
    • Language Religion or Drug addiction
  • What are the key features you use?
  • How did the usage of Lucee change during your time at DK
  • Why are you proud to use CF?
  • WWIT for you to make CF more alive this year?
    • Show up and share your passion and love of CFML
    • CF dark matter x100 verbose

 

Mentioned in this episode

Bio

Gert Franz

Gert was born in 1967 and lives in Switzerland since 1997. He is one of the key people behind Lucee. Back in the late eighties he studied astrophysics in Munich but switched to later IT as a profession and programmed for several companies in the past as a database administrator and system analyst. Gert spoke a lot at all major conferences in the past and will for sure in the future. He now leads the Dev department at DistroKid.

Links