Dan Appleman

666 posts

Dan Appleman

Dan Appleman

@danappleman

san jose, ca Katılım Mayıs 2007
136 Takip Edilen3.4K Takipçiler
CodePrime8👨‍💻
CodePrime8👨‍💻@CodePrime8·
Excuse me, @danappleman, but are you the author of this book? (its the book I read when I was 14, and helped spark my inner programmer) I found a copy of it that can be checked out on Internet Archive! archive.org/details/danapp… Visual Basic 5.0 Programmer's Guide To The WIN32 API
CodePrime8👨‍💻 tweet media
English
1
0
7
920
Dan Appleman retweetledi
Phil W
Phil W@PhilW_SF·
For those who worry about code performance, I provided a new answer on a @StackSalesforce Q&A that discusses the performance of Schema.getGlobalDescribe when wanting to dynamically get the ID key prefix from an object named by string. #380019" target="_blank" rel="nofollow noopener">salesforce.stackexchange.com/questions/1580…
English
3
3
10
0
Dan Appleman
Dan Appleman@danappleman·
@ca_peterson It's not a tech use-case as much as a business use-case. Guaranteed execution time to meet user experience requirements, or integration requirements.
English
0
1
5
0
Chris Peterson
Chris Peterson@ca_peterson·
If hypothetically there was a variant of Apex Queueable that: had a documented SLA for how quickly it runs (in seconds) BUT had lower runtime limits to compensate for that Would you use it? What for?
English
11
5
12
0
Dan Appleman
Dan Appleman@danappleman·
@prateekmathur91 The sample code is provided as a local git repository. Just check out the branch for the chapter you are interested in, and you'll see the folder and sample code for that chapter.
English
0
0
0
0
Dan Appleman
Dan Appleman@danappleman·
@scottlee I call it dynamic to distinguish from creating code that is bulk-safe, which is "static". But you can call it anything you want. The whole "I created a new term" part is just for fun :-)
English
0
0
0
0
Dan Appleman
Dan Appleman@danappleman·
Did I really just invent a new term "Dynamic Bulkification"? If you've ever experienced locking errors in Salesforce, you may want to find out more: advancedapex.com/2022/04/09/dyn…
English
5
14
56
0
Dan Appleman
Dan Appleman@danappleman·
@PhilW_SF @ImJohnMDaniel Remember, the approach I describe is one to deal with ill-behaved integrations over which you have no control. If you have control over the integration, obviously you would fix this on the integration side.
English
0
0
0
0
Phil W
Phil W@PhilW_SF·
@danappleman @ImJohnMDaniel Because of the async nature, sure. Seems like a very broken integration in my mind. My sympathy for having to work around this scenario, but I cannot say I would ever recommend to others the approach you have taken. It is too brittle and liable to fail at scale.
English
1
0
0
0
Dan Appleman
Dan Appleman@danappleman·
@PhilW_SF @ImJohnMDaniel That's ok, I'm happy for you that you've never faced this situation. Too many of our customers deal with this every day.
English
0
0
0
0
Dan Appleman
Dan Appleman@danappleman·
@PhilW_SF @ImJohnMDaniel Not really - as this problem can appear during burst operations over short periods - too short to significantly impact the 24-hour API limit.
English
1
0
0
0
Phil W
Phil W@PhilW_SF·
@danappleman @ImJohnMDaniel Doing this bulkification on-platform will not scale. It must be done off-platform, especially when using an integration user approach (since the number of licenses required, and thus API limit allocation, is unlikely to out-pace the API limit consumption).
English
2
0
0
0
Dan Appleman
Dan Appleman@danappleman·
@PhilW_SF @ImJohnMDaniel Again, real world here. Are they going to put in the work to fix their systems, or just blame Salesforce or your implementation? This is as much a problem of economics and politics as it is technology.
English
0
0
0
0
Phil W
Phil W@PhilW_SF·
@danappleman @ImJohnMDaniel Have they implemented failure callbacks? If not they don't know what they are doing and again you need to switch integrator!
English
2
0
0
0
Dan Appleman
Dan Appleman@danappleman·
@PhilW_SF @ImJohnMDaniel If you have control over the integration, or even the ability to intercept it (and the resources to build middleware) sure. But this is the real world - where often you don't have the ability to address the behavior of the external integration.
English
1
0
0
0
Phil W
Phil W@PhilW_SF·
@danappleman @ImJohnMDaniel In a less flippant way - instead of doing this bulkification on-platform you really need to introduce your own middleware to do it for you. Perhaps heroku-based? Maybe MuleSoft can help?
English
2
0
0
0
Dan Appleman
Dan Appleman@danappleman·
@PhilW_SF @ImJohnMDaniel Nice in theory, but when the integration is a managed package that your sales team or marketing department insists on using, you don't have that luxury.
English
1
0
0
0
Phil W
Phil W@PhilW_SF·
@danappleman @ImJohnMDaniel Switch integrator! If they cannot integrate in a scalable way with the platform they shouldn't be doing the job.
English
1
0
0
0
Dan Appleman
Dan Appleman@danappleman·
@PhilW_SF @ImJohnMDaniel Again, I agree that API limits are a concern - but each integration tends to only be concerned about their own usage - so as far as they're concerned, it's not their problem. And yes, the integration is asynchronous - which reflect the real-world experience we've seen.
English
1
0
0
0
Phil W
Phil W@PhilW_SF·
@danappleman @ImJohnMDaniel Two issues here: API limits and the assumption that the external integration is inherently multi-threaded or that the record processing in triggers/automation is async.
English
2
0
0
0
Dan Appleman
Dan Appleman@danappleman·
@libib @libib Help! I was trying to edit a description of an item and it kept freezing. I was about to report it as a bug, but now I can't access the site at all.
English
0
0
0
0
Libib
Libib@libib·
We'll be starting the update for Libib at around 3pm PST today (2/26). The site will be unavailable for a few hours until the update is complete.
English
15
0
11
0