TRANSKRIP 🔗
WEBVTT
00:00:01.919 --> 00:00:03.200
Thank you very much.
00:00:03.839 --> 00:00:04.959
Hello, hello.
00:00:06.000 --> 00:00:06.959
Hello, hello.
00:00:07.120 --> 00:00:07.919
Hello, hello.
00:00:08.080 --> 00:00:08.960
Can you hear me?
00:00:09.439 --> 00:00:09.839
Lovely.
00:00:10.800 --> 00:00:12.000
Thank you very much, guys.
00:00:12.160 --> 00:00:16.239
Um, my name is Eduardo, and thank you very much for joining today.
00:00:16.480 --> 00:00:19.280
Today I have a little fabble for you.
00:00:19.920 --> 00:00:23.280
The story of a little mammoth with a very big dream.
00:00:24.480 --> 00:00:28.640
He wanted to become the biggest payment platform out there.
00:00:29.679 --> 00:00:34.079
But to get there, he had to overcome a series of challenges.
00:00:34.399 --> 00:00:36.880
And the first one was the speed.
00:00:37.920 --> 00:00:42.000
You see, O Little Mammoth had finally gained his independence.
00:00:42.240 --> 00:00:44.240
But independence alone wasn't enough.
00:00:44.399 --> 00:00:49.039
He wanted his improvements to reach out to his customers as fast as possible.
00:00:49.280 --> 00:00:53.759
So he reached out to the fastest friend he knew, the roadrunner.
00:00:54.000 --> 00:00:57.439
And the roadrunner gave him a red shiny car.
00:00:57.679 --> 00:00:59.600
O Little Mammoth was delighted.
00:00:59.840 --> 00:01:02.159
Finally, I can go blazing fast.
00:01:02.960 --> 00:01:08.239
So without a second thought, he jumped into the car and gets ready to start the race.
00:01:09.439 --> 00:01:14.400
But suddenly, when the lights turn green, something unexpected happened.
00:01:15.359 --> 00:01:17.840
The car barely moved.
00:01:18.079 --> 00:01:20.079
Or Little Mammoth was confused.
00:01:21.519 --> 00:01:22.159
Why?
00:01:23.920 --> 00:01:26.400
Because the car had no engine.
00:01:26.719 --> 00:01:30.159
Or Little Mammoth had to pedal its way through.
00:01:31.200 --> 00:01:34.239
And that was a reality 20 months ago.
00:01:34.480 --> 00:01:46.239
We extracted the payment experience from the native applications and the website into a separate iframe to speed up time to market, reduce coupling, and enhance security.
00:01:46.719 --> 00:01:49.760
One project, four channels.
00:01:50.879 --> 00:01:58.959
To give you an idea of the scale, in March 2026, we processed over 1.6 million daily transactions.
00:01:59.040 --> 00:02:02.560
And we handled over 300 million euros in deposit.
00:02:02.799 --> 00:02:07.359
We supported over a dozen payment methods across seven jurisdictions.
00:02:08.319 --> 00:02:12.879
But unfortunately, as all the as amazing stories, there was a twist.
00:02:13.039 --> 00:02:15.919
We inherit the delivery process of the website.
00:02:16.080 --> 00:02:18.800
Let me tell you a little bit more about that process.
00:02:19.439 --> 00:02:25.759
Developers will branch from the non-production branch, make their changes, and open a pull request.
00:02:26.080 --> 00:02:30.960
When those changes get approved, then those changes get merged into the non-production run.
00:02:31.439 --> 00:02:35.199
And only then those changes will reach the staged environment.
00:02:35.360 --> 00:02:38.560
And only then QA will be able to validate those changes.
00:02:41.199 --> 00:02:44.000
And that was our first bottleneck.
00:02:46.719 --> 00:02:52.240
All the changes from the different developers came together into one non-production environment.
00:02:52.400 --> 00:02:55.599
And therefore in one shared staging environment.
00:02:55.919 --> 00:03:04.479
QA aimed to validate things individually, but developer kept merging changes and the staging environment kept changes.
00:03:04.639 --> 00:03:11.919
Or QA was crazy in the sense that he wanted to actually know exactly what changed on that particular individual change.
00:03:12.000 --> 00:03:18.800
And it was impossible to know if something break, if it was related with the changes on the specific ticket or someone else's.
00:03:20.080 --> 00:03:23.439
And there was a second problem with this approach.
00:03:24.159 --> 00:03:30.240
To give you an example, the release candidates were like 75 commits over 100.
00:03:30.400 --> 00:03:41.759
And the reality was even if your changes were ready to be released and the QA validate all your changes, you still have to wait for everyone else's changes to be validated before you can release.
00:03:41.919 --> 00:03:44.879
So we ended up releasing once or twice a month.
00:03:45.120 --> 00:03:46.879
And that wasn't great.
00:03:47.360 --> 00:03:54.240
And when you release, because the blast radius was so big and something breaks, it was very difficult to keep pointing things.
00:03:54.319 --> 00:03:56.000
And this was before AI.
00:03:57.360 --> 00:04:02.479
So now that these problems are clear, how did we solve this?
00:04:03.599 --> 00:04:11.840
Well, we created feature branch deployments that they kick off when the pull request was open.
00:04:12.319 --> 00:04:20.399
Now developers and QA could validate changes independently without being affected by anyone else's.
00:04:20.639 --> 00:04:30.560
The GitHub Action CI will build the cashier based on the changes of your branch and then upload them to S3.
00:04:31.199 --> 00:04:39.120
Then we use the feature, the branch names, and the hash commits to actually identify uniquely the bill.
00:04:39.279 --> 00:04:46.000
Then the GitHub workflow, as you can see on the screen, publish the preview links for each market.
00:04:47.120 --> 00:04:53.360
Now the developer can share those links in the ticket and QA could validate those things independently.
00:04:54.319 --> 00:05:07.839
When you open those preview links, what happens is it set up a cookie on the website, and then that cookie remains until you clear it, fetching the right version of the player can share within the browser.
00:05:08.000 --> 00:05:14.079
So now the QA can test features for payments end-to-end without any disruptions.
00:05:16.000 --> 00:05:23.600
And now the most important
Load full transcript
part for us the non-production branch became stable and always releasable.
00:05:24.639 --> 00:05:27.839
And that raises a very interesting question.
00:05:28.480 --> 00:05:35.439
Do we really need to maintain two long list branches with all the coordination and synchronization overhead that that represents?
00:05:35.839 --> 00:05:38.000
Well, the answer is no.
00:05:38.560 --> 00:05:41.279
We move to trunk-based development.
00:05:41.439 --> 00:05:45.199
That meant that we kept the production branch and rename it to main.
00:05:45.600 --> 00:05:48.639
Then we retire the non-production branch.
00:05:49.920 --> 00:05:54.879
And from that point, the developer will keep actually branching their changes.
00:05:54.959 --> 00:05:58.160
But now from non-production, they will actually branch from main.
00:05:58.399 --> 00:06:01.759
They will validate the changes and something have changed.
00:06:01.920 --> 00:06:06.079
Now they cannot merge their changes until QA sign off that pull request.
00:06:06.240 --> 00:06:10.560
So when that pull request is merged, now a new process starts.
00:06:10.720 --> 00:06:15.360
Those changes will be bound together and actually upload to street.
00:06:15.600 --> 00:06:19.120
And we use basically one extra change.
00:06:19.279 --> 00:06:25.360
In order to make things easier to trace, we move from merge and commit to squash mergers.
00:06:25.600 --> 00:06:28.879
So now we have a single commit per pull request.
00:06:29.040 --> 00:06:40.800
So it's easier to trace when a new version gets released exactly what changed either on your sentry logs or even on the side of the backends because we send the version every time we make a payment.
00:06:40.959 --> 00:06:46.240
So it was very easy as well to roll back because you know exactly which version has caused the issue.
00:06:46.800 --> 00:06:51.439
So now that we have all of this, we are very excited.
00:06:51.759 --> 00:06:59.519
But when we publish a new version, it actually add a new variant to our system on feature flagging, which is in Launch Darkly.
00:06:59.680 --> 00:07:02.879
LaunchDarkly is a feature flag system if you're not familiar with it.
00:07:03.040 --> 00:07:09.839
And the developer still manually have to upgrade that version in order to make it available to the customer.
00:07:10.000 --> 00:07:16.399
And as well, publish those release notes within the maintenance channel so everyone knows what's happening.
00:07:17.279 --> 00:07:20.560
That means that our little mammoth still have to pedal.
00:07:20.720 --> 00:07:24.319
We have improved a lot of things, but we haven't got to the end goal.
00:07:24.560 --> 00:07:26.079
So now the last step.
00:07:26.240 --> 00:07:30.000
We move to continuous delivery into continuous deployment.
00:07:30.160 --> 00:07:36.000
By doing so, we guarantee that the experience is end-to-end and very easy to maintain.
00:07:36.160 --> 00:07:49.120
So now the automations of the GitHub actions will extend it to support the end-to-end delivery, and now that version will automatically be upgraded and it will be rolled out to customers.
00:07:49.279 --> 00:07:57.279
And additionally, the GitHub workflow will publish that GitHub comment on the maintenance channel so the support team can actually know what's going on.
00:07:57.680 --> 00:08:03.519
So now, no more manual work from the little mammoth.
00:08:04.639 --> 00:08:07.439
And you say, why this matter?
00:08:07.600 --> 00:08:12.399
Why this is very common to us, but that wasn't a reality 20 months ago.
00:08:12.560 --> 00:08:18.720
To give you some numbers, we, as I mentioned on the left-hand side, we tend to release once or twice a month.
00:08:18.800 --> 00:08:23.759
That was a reality until 13 of October when we reach out continuous delivery.
00:08:23.920 --> 00:08:33.120
At that point, our release process actually increased over a 20x, delivering value like 40 times a month.
00:08:33.279 --> 00:08:35.360
And this is not counting a large thing.
00:08:35.440 --> 00:08:39.759
This is actually a six people thing today.
00:08:40.080 --> 00:08:43.519
It has grown to eight people, but that's in count in the metrics at the moment.
00:08:43.600 --> 00:08:47.679
So less than 10 people T provides 40 changes a month.
00:08:47.919 --> 00:08:54.000
And you say, well, yes, true, you actually merge everything together into commits, and now you're constantly releasing.
00:08:54.080 --> 00:08:58.080
So the version gets upgraded faster than with the release candidate.
00:08:58.240 --> 00:08:59.840
And that's a third channel.
00:09:00.000 --> 00:09:02.000
So I wanted to give you another number.
00:09:02.159 --> 00:09:04.000
So once something is stronger.
00:09:04.159 --> 00:09:11.360
Think about on the left-hand side is one commit that you have published on your changes on the non-production branch.
00:09:11.600 --> 00:09:15.360
And that's the time it took that change to reach out the customer.
00:09:15.519 --> 00:09:22.080
Around six days, 139 hours that that changes that was actually published reach out the customer.
00:09:22.240 --> 00:09:25.679
Now with continuous deployment, we went to 150 minutes.
00:09:25.919 --> 00:09:31.120
That's the how fast the customer actually, how fast the change reach our customers.
00:09:31.440 --> 00:09:34.879
That's true, there are some non-sites, it's not for free.
00:09:35.039 --> 00:09:38.080
As you can see on the left hand side, we have three hours merge.
00:09:38.240 --> 00:09:41.600
That's the time it took us to merge those changes from the pull request.
00:09:41.759 --> 00:09:49.440
Now it takes almost a day because the QA involvement have to review manually those changes before you can merge them.
00:09:51.919 --> 00:09:54.559
That was an ideal.
00:09:55.200 --> 00:09:59.200
But finally, O Linda Mamu got his energy.
00:09:59.360 --> 00:10:00.559
Now he can race.
00:10:00.720 --> 00:10:03.919
And he started going faster and faster and faster.
00:10:04.159 --> 00:10:05.200
Very exciting.
00:10:05.440 --> 00:10:07.120
But something went off.
00:10:07.519 --> 00:10:16.080
The car suddenly started losing its screws and started having some of the indicators flashing out.
00:10:18.399 --> 00:10:19.679
He was very desperate.
00:10:19.840 --> 00:10:20.639
What's happening?
00:10:20.720 --> 00:10:21.919
What's going on?
00:10:22.240 --> 00:10:23.360
What is this happening?
00:10:23.519 --> 00:10:27.600
So he reached out to his friend the mechanic and asked, Can you help me with this?
00:10:27.759 --> 00:10:36.000
And our little mechanic, very nice and very polite, asked, pull over on the pitch top, let's look into what happened to your car.
00:10:36.080 --> 00:10:43.039
And start looking at the engine, at the car, at the wheels, at the screws, and start growing, growing lists.
00:10:43.279 --> 00:10:47.519
Every new feature to that car was actually increasing that validation list.
00:10:47.679 --> 00:10:52.000
And everyone was waiting for that mechanic to be available to review the things.
00:10:52.080 --> 00:10:53.840
And that's what happened to us.
00:10:54.080 --> 00:11:01.759
When we have increased the pace of the delivery, the QA person wasn't able to keep up and we were struggling.
00:11:01.919 --> 00:11:07.919
She was working 12 hours a day doing her best, but we wouldn't be able to keep up with the new pace of styles.
00:11:08.159 --> 00:11:11.600
So I sat with the team and tried to analyze what was the problem.
00:11:11.840 --> 00:11:20.399
To give you a clear idea, I call it the melted ice cream of testing from the adding pattern, the ice cream of testing.
00:11:20.559 --> 00:11:23.600
That was a reality 20 months ago.
00:11:23.759 --> 00:11:34.960
Most of the tests were actually manual, and we only have 61 tests, and 56 of those 61 tests were unit testing.
00:11:35.039 --> 00:11:38.320
So everything was in the solace of our QA team.
00:11:38.480 --> 00:11:40.240
And that was an idea.
00:11:40.799 --> 00:11:43.759
So I sat with the team and proposed a new solution.
00:11:43.919 --> 00:11:47.200
I call it the outside in testing strategy.
00:11:47.360 --> 00:11:53.279
The concept is how RQ8 mindset works when it validated the change.
00:11:53.440 --> 00:12:01.440
So the way it worked, it looks at the customer journey and interact with the applications and the browser to guarantee that that works correctly.
00:12:01.679 --> 00:12:10.799
To give you a little bit of an idea how that will work is this is like a draft of payments, no specifically how the app is built, it's just to explain the concept.
00:12:10.960 --> 00:12:16.480
So you, when you wanted to make a payment, wherever you go, either you do a deposit or a withdrawal.
00:12:16.559 --> 00:12:18.879
You put money in or money out.
00:12:19.039 --> 00:12:25.120
You choose what payment method you wanted to use: PayPal, car, back account, and then you put some information on it.
00:12:25.279 --> 00:12:31.519
You put your bank details, and then you put the amount you wanted to deposit or the amount you wanted to withdraw.
00:12:31.759 --> 00:12:35.039
And then there is a few steps extra on that process.
00:12:35.120 --> 00:12:41.120
Sometimes you have phase edit verification, MFA, 3DS checks to guarantee that you are who you say you are.
00:12:41.279 --> 00:12:46.960
And finally, always we get to this final outcome, which is either you succeed or you fail.
00:12:47.120 --> 00:12:48.399
That's the reality.
00:12:48.720 --> 00:12:58.000
So what about if we get the good things of end-to-end tested and bringing water level along as is described by Kenodons on the trophy of tested?
00:12:58.080 --> 00:13:01.679
And we make it mainly doing integration testing for us.
00:13:02.000 --> 00:13:06.080
Well, in order to achieve that, we need to understand our system well.
00:13:06.399 --> 00:13:28.240
And in our case, the player cachier has four clear boundaries: the backend API, the feature flag that allows us to provide us that gate to provide the safety when we do continuous deployment, which every continuous deployment requires feature flagging to guarantee that the features reach out to the customer, but you can roll it back easily.
00:13:28.639 --> 00:13:31.360
Then we have the payment provider on the bottom.
00:13:31.519 --> 00:13:36.399
And the payment provider is important to us because not all the journey is native.
00:13:36.480 --> 00:13:43.200
Some things require PCI compliance and force us to use specific iframes or reader eds to that journey.
00:13:43.279 --> 00:13:48.720
So we control up to the point with reader, and we control the redirect back to our customer.
00:13:49.039 --> 00:13:59.120
And then finally, the point of the list, which is the crucial part, because we are in the context of an iframe or web view, we have to have a communication and a contract with the parent.
00:13:59.279 --> 00:14:03.200
And generally, for iOS and web, we use post messages.
00:14:03.279 --> 00:14:05.440
For Android, we use a different protocol.
00:14:05.679 --> 00:14:08.799
Not gonna talk about if you're interested, we can talk about it later.
00:14:09.120 --> 00:14:16.799
So how do we modelate to get the best of end-to-end testing without ending up in a situation which is very heavy and very flucky?
00:14:16.960 --> 00:14:29.039
So for the back-end IPI we use mock service work, so we actually do an interface from the network to guarantee that we can control what's the output of that network request, but we test the journey end-to-end.
00:14:29.200 --> 00:14:33.440
So we no longer validate unit testing that is making the IPI or check the service.
00:14:33.519 --> 00:14:34.720
We do journeys end-to-end.
00:14:35.039 --> 00:14:36.960
So all until we leave the cachier.
00:14:37.279 --> 00:14:39.440
The same thing happened with feature flags.
00:14:39.600 --> 00:14:44.480
We wanted to actually replace the SDK from launch exactly, and we create a mock IPI.
00:14:44.639 --> 00:14:52.879
But that IPI actually is interacted through the
network, so we actually get what's the response of that IPI, and we can validate everything end-to-end.
00:14:53.279 --> 00:15:00.480
The same for the payment provider, we actually have a mock situation where we actually know exactly when it lives and when it's back.
00:15:01.360 --> 00:15:05.600
I don't wanted to go too much into detail because I have gave another talk about this one.
00:15:05.759 --> 00:15:14.960
But overall, the reality is, at least in my opinion, I see outside in testing strategy based on this particular quote.
00:15:15.279 --> 00:15:20.960
Confidence is the byproduct of understanding the customer reality and the boundaries between the system.
00:15:21.279 --> 00:15:26.240
That will guarantee that when you test everything, everything works the way you expect.
00:15:26.399 --> 00:15:29.840
And to give you some numbers, this is what happened to us.
00:15:30.000 --> 00:15:34.720
We went from 61 tests to 1700 or even more today.
00:15:34.960 --> 00:15:43.279
Obviously, in the last few months, the adoption of AI have significantly increased the number of tests, but the most important part is the percentage-wise.
00:15:43.440 --> 00:15:54.159
We have almost a 50-50 split between the low-level validation logic for taxation or stuff like that, and then the journey, which is a crucial part of that.
00:15:55.120 --> 00:16:01.200
This number might not represent so much to you, so I wanted to give you another set of numbers.
00:16:01.440 --> 00:16:05.039
And if you allow me, I will explain a little bit how that means.
00:16:05.200 --> 00:16:17.759
So on the left-hand side, we can see on the top left, so we see how many of the PRs before making all these changes on this journey, how much of those checks pass at the time.
00:16:17.919 --> 00:16:20.720
We have 23%, now we are over 100%.
00:16:21.120 --> 00:16:24.159
Well, we cannot go over 100%, but we are 100% coverage.
00:16:24.240 --> 00:16:36.159
And from not validating the customer journey to have over 700 test cases, 3DS, MFA, validations, then we have biometrics and name it.
00:16:36.559 --> 00:16:42.559
And the second thing is all the work that OrQA was doing by hand now is automated.
00:16:42.879 --> 00:16:50.000
We have done 310 releases signs, the automation happened without having to worry about if anything fails.
00:16:50.159 --> 00:16:52.399
And this last one is very interesting.
00:16:52.559 --> 00:16:56.000
I'm gonna read it because it's it's something I don't have by hand.
00:16:56.559 --> 00:17:08.240
But this release cycle, this 15% was basically the time that was needed to roll back or hot fix within a week something that you have put to the customer's hands.
00:17:08.559 --> 00:17:20.640
Means that before we set out this confidence, we will end up 15% or 15.8% of the time, and then I have to roll back something or fix something on the client no longer.
00:17:21.200 --> 00:17:24.480
Finally, our little mammoth has his own testing area.
00:17:24.640 --> 00:17:30.400
He has to be able to check his engine, he was be able to get his car to optimal condition.
00:17:30.559 --> 00:17:36.640
And the most important part, or little mechanic or QA can focus on the complex and relevant tasks.
00:17:36.799 --> 00:17:44.319
No longer headaches, no longer a lot of back and forth between the engineer and the QA, and most importantly, happy life for everyone, right?
00:17:45.680 --> 00:17:50.319
Unfortunately, as old stories, it doesn't end there.
00:17:50.799 --> 00:17:59.359
When something needed to change, a new piece needed to be replaced, our little mom would have to go to different galleries because everything lived in different places.
00:17:59.519 --> 00:18:05.519
So he ended up going to all the pieces to get his car working back again, and that wasn't ideal.
00:18:05.680 --> 00:18:14.079
So he took the time and reached out to his friend the beaver, and the beaver, an excellent building, came out with a plan.
00:18:15.119 --> 00:18:17.279
Let's build everything under one roof.
00:18:17.359 --> 00:18:22.400
Let's create one factory so everything that you need will be there together.
00:18:22.720 --> 00:18:26.960
And to give you an idea, this is how fragmented was Word ecosystem.
00:18:27.200 --> 00:18:35.200
We have the website, then we have the player cachier on a separate repository that we created to actually have that independence that I told you about earlier.
00:18:35.279 --> 00:18:42.000
But we created two additional repositories: the SDK, which is the interface as you will actually use SDK day to day.
00:18:42.160 --> 00:18:46.640
You have an SDK for Android, you have an SDK for an iOS, and you have an SDK for web.
00:18:47.039 --> 00:18:56.160
And then we have the types that actually glue everything together and guarantee that the data that comes in and out between the pattern and the application is always correct.
00:18:56.400 --> 00:18:57.680
And that was a reality.
00:18:57.759 --> 00:19:00.960
So imagine that you wanted to add a new element to the contract.
00:19:01.119 --> 00:19:11.920
You need to upgrade the types on the player cachier, then propagate it to the cachier types, then you actually need to upgrade the SDK to have that new feature on the post messages.
00:19:12.079 --> 00:19:14.960
And finally, you need to actually update the website.
00:19:15.200 --> 00:19:24.079
Imagine how much time and coordination that took us when you need to actually publish temporary releases, use JarnLeak, and many other things.
00:19:24.160 --> 00:19:26.799
That's very complex and very convoluted.
00:19:27.279 --> 00:19:32.640
So, as one of the sponsors that is here today, we decided to go with Innex.
00:19:32.799 --> 00:19:37.759
That's a very powerful set of tools to bring everything together under one mono repo.
00:19:38.240 --> 00:19:44.160
Today, the website is not part of us because the website has their own way of thinking and the complexity is different.
00:19:44.319 --> 00:19:46.559
But we brought all ORI on
a rule.
00:19:46.640 --> 00:19:51.839
So now when you add a new feature to your contract on the post message, everything is together.
00:19:52.079 --> 00:19:55.359
But obviously, it doesn't mean that much to you today, right?
00:19:55.599 --> 00:19:59.519
So, how much that represents an engineering saving time?
00:19:59.680 --> 00:20:01.039
So let's look at the numbers.
00:20:01.279 --> 00:20:13.920
So, overall, we calculated based on the historical time on the past 20 months that we have wasted almost 300 hours of engineering time on coordination across 240 different packages.
00:20:14.559 --> 00:20:26.720
So it means that just by adding that moral repo on your day, you're saving almost 14 hours a month per engineer within their ecosystems on that coordination alone.
00:20:28.000 --> 00:20:30.960
So such a small change, such a big difference.
00:20:31.039 --> 00:20:33.519
So everything was under one roof.
00:20:33.599 --> 00:20:37.759
So every time the car needed repairs, he was able to change everything.
00:20:37.920 --> 00:20:40.559
He was very excited and was able to race.
00:20:40.720 --> 00:20:53.039
So he went out race by race, went to every single place in Europe: Romania, Serbia, Greece, Belgium, and every single race, he was happy and won.
00:20:53.119 --> 00:20:57.119
He was a very amazing thing behind him and guaranteed everything worked.
00:20:57.279 --> 00:21:00.720
And then he went into the ambitious Brazil.
00:21:01.039 --> 00:21:08.000
He went across the river, well across the river, across the ocean, in the Atlantic Ocean, and decided to race there.
00:21:08.240 --> 00:21:16.880
But unfortunately, as you wanted, Brazil was very different, very different from the reality in Europe.
00:21:17.039 --> 00:21:23.200
They have hills, they have all changes, and the car wasn't able to keep up, and he was falling behind it.
00:21:23.359 --> 00:21:27.359
So finally he reached out to the last friend that he had, the Fox.
00:21:27.680 --> 00:21:34.480
And the Fox, very clever and astute, said, Let me look at your car, let me look at the terrain around you.
00:21:34.640 --> 00:21:35.519
What's going on?
00:21:35.680 --> 00:21:38.079
What's there in Brazil that is nowhere else?
00:21:38.319 --> 00:21:44.400
Well, and they asked a very clever question What's the customer reality in Brazil?
00:21:46.240 --> 00:21:54.720
Looking back, the customers in Brazil, a large majority were using low devices with low CPU and low memory.
00:21:54.880 --> 00:21:59.119
And then when we look at the network, the round trip time were almost twice as Europe.
00:21:59.200 --> 00:22:03.440
And the time Of advice up to 2.5 times slower.
00:22:03.759 --> 00:22:08.000
With those constraints clear, we look back at the cost of run architecture.
00:22:08.160 --> 00:22:12.480
What does the player cachier need to do before the customer can use it?
00:22:12.720 --> 00:22:18.160
Well, we can identify four different initialization phases.
00:22:18.400 --> 00:22:24.000
The first one, we render the player cachier in an iframe or web view.
00:22:24.319 --> 00:22:29.920
Second, we synchronize the context to extract the execution information from the parent.
00:22:30.079 --> 00:22:35.359
And third, we retrieve the necessary data from the IPI's feature flags and translation.
00:22:35.519 --> 00:22:46.480
And fourth, the final one, we resolve the payment auctions, fetching the necessary assets, and compose the final payment experience for the customer.
00:22:46.799 --> 00:22:50.559
The problem wasn't any specific initialization phase.
00:22:50.720 --> 00:22:56.559
It was the compose effect of processing time plus network latency across the critical path.
00:22:56.960 --> 00:22:59.839
And you will ask me, how did we solve this?
00:23:00.079 --> 00:23:04.720
Well, I introduced the critical path principle.
00:23:05.440 --> 00:23:07.440
Let me tell you a little bit more about them.
00:23:07.680 --> 00:23:11.119
First, if the customer doesn't need it, remove it.
00:23:11.440 --> 00:23:15.279
Second, if the customer needs it, move it earlier.
00:23:15.519 --> 00:23:20.480
And third, if it doesn't need to happen at runtime, move it out of runtime.
00:23:20.720 --> 00:23:26.319
These principles are simple, but what is interesting is what forced us to change in the player cashier.
00:23:26.960 --> 00:23:30.000
So let's look at the first principle in action.
00:23:31.039 --> 00:23:34.000
If the customer doesn't need it, remove it.
00:23:34.480 --> 00:23:41.359
In payments, we use kill switches behind feature flags to disable payment auctions during provider outages.
00:23:41.759 --> 00:23:44.799
That gave us safety, but it came with a cost.
00:23:45.279 --> 00:23:50.079
The customer needs to wait for those chains to complete before they can continue.
00:23:52.559 --> 00:23:58.160
If we look back at the initialization phases, feature flags were part of phase three.
00:23:58.480 --> 00:24:04.000
In Brazil, resolving those feature flags took up to 15 seconds.
00:24:05.279 --> 00:24:12.640
And the interesting part, Brazil has a single payment method with many providers as a fallback.
00:24:13.200 --> 00:24:15.680
So that left us with a decision to make.
00:24:15.839 --> 00:24:23.200
Do we keep customer waiting for an exception, or do we trust the packet to check for payment availability?
00:24:23.839 --> 00:24:25.440
We choose the second.
00:24:26.160 --> 00:24:31.119
We didn't remove safety, we removed waiting time for an exception.
00:24:31.599 --> 00:24:33.440
But now everything can be removed.
00:24:33.599 --> 00:24:38.640
Some requests are necessary, like eligibility, bank account details, or balance.
00:24:38.720 --> 00:24:41.039
And that limits to the second principle.
00:24:41.279 --> 00:24:44.559
If the customer doesn't need it, move it earlier.
00:24:44.880 --> 00:24:49.920
At that time, those requests sat in the initialization pass as part of phase three.
00:24:50.160 --> 00:24:53.839
Under those conditions, the network
became the bottleneck.
00:24:54.079 --> 00:24:56.319
So can we make them earlier?
00:24:56.640 --> 00:24:59.599
Well, we move them to the parent application.
00:24:59.839 --> 00:25:03.599
Now the request can start while the player cashier was loading.
00:25:03.920 --> 00:25:08.559
That improved the experience, but there was still a synchronization point.
00:25:08.799 --> 00:25:13.440
If the customer reached the cashier before the data is ready, they still had to wait.
00:25:13.759 --> 00:25:24.319
So we move it earlier again, immediately after logging, prioritization, prioritizing the first time depositors.
00:25:24.720 --> 00:25:29.599
Now, by the time the customer reached the cashier, the data could already be there.
00:25:30.559 --> 00:25:32.799
We didn't make the IPI faster.
00:25:33.039 --> 00:25:35.440
We changed when we pay the cost.
00:25:36.240 --> 00:25:38.960
But it doesn't really need to happen at runtime at all.
00:25:39.039 --> 00:25:41.680
And that leads me to the last principle of today.
00:25:42.240 --> 00:25:46.160
If it doesn't need to happen at runtime, move it out of runtime.
00:25:48.160 --> 00:25:56.079
At that point, the player cached was a single page application, but much of the initial experience was predictable.
00:25:56.240 --> 00:26:00.720
We knew the market, the language, and the route before the customer arrived.
00:26:00.960 --> 00:26:06.480
So instead of rendering everything at runtime, we pre-render those predictable parts.
00:26:06.720 --> 00:26:11.279
Then we resolved the experience and DH based on the market language and route.
00:26:12.160 --> 00:26:15.519
Now we didn't regrite the application.
00:26:15.680 --> 00:26:21.359
We kept the single-page applications, but we grabbed it around static site generation.
00:26:22.480 --> 00:26:31.359
And the result, after applying these three principles, Brazil performance went from 16 seconds B90 to under 3 seconds.
00:26:33.680 --> 00:26:39.200
Now, finally, Olitan Mammoth won the best race of his life.
00:26:39.440 --> 00:26:48.160
The race that actually we handled over 65% of these 300 million depositors came from Brazil, just to give you an idea.
00:26:48.319 --> 00:26:49.759
So he was very excited.
00:26:49.920 --> 00:26:54.960
Now he can win that race, and all the customers were happy, and he was happy.
00:26:55.119 --> 00:27:04.720
Thanks to the friend of all the broadrunner, the mechanic, the beaver, and the folks that she was on holiday, so he couldn't make it to the picture.
00:27:05.839 --> 00:27:08.079
So just to recap a little bit.
00:27:08.720 --> 00:27:17.039
So looking back at all the journey and all the experience, every time a problem was solved, a new problem pops up, right?
00:27:17.200 --> 00:27:21.359
So we automated the process, but we needed confidence.
00:27:21.599 --> 00:27:28.000
We got confidence, but we needed we struggled with coordination.
00:27:28.160 --> 00:27:33.759
So we solved coordination, and then Brazil actually became a challenge on performance.
00:27:34.000 --> 00:27:37.359
So look at those principles because apply for any project that you want.
00:27:37.839 --> 00:27:42.480
So through all of this, our little mammoth learned a very important lesson.
00:27:43.279 --> 00:27:47.200
The right solution is to start understanding the right problem.
00:27:49.279 --> 00:27:52.640
Thank you very much, and thank you for joining this journey to me.
00:27:52.799 --> 00:28:00.640
I have a lot of content on this more technical detail on my website, and feel free to connect on LinkedIn or ask me questions after if you're interested.
00:28:00.799 --> 00:28:01.599
Thank you.