In this meeting, the State Changer discusses a function they have built called the aggregate statistics function. The function takes a campaign ID and queries all the email events related to that campaign. It then creates an object with the data and calculates rates. They mention that the biggest risk with this function is performance and discuss the possibility of using API caching to improve it. They explain that API caching allows the server to provide the same answer to the same request without rerunning calculations. They suggest enabling caching to improve performance and recommend starting with a delay of five minutes between requests. They explain that this means the web server will be hit more frequently, but the function stack will only run once every five minutes. They also mention that caching can be adjusted based on customer needs and service levels. The State Changer expresses confidence in the function they have built and plans to test it further.
(Source: Office Hours 2/3 )
Join State Change Risk-Free