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
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 less than 0.5 second
Blue-Green deployment strategy to cloud cluster
Allowing CFTag in CFScript
All CF tags have script equivalents
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