This time, our webinar has a special guest: Jarosław Pałka. He’s the Senior Staff Software Engineer responsible for benchmarking infrastructure in Neo4j. We discussed how to reason about performance practically, so how not to get mad and build performance-aware systems. We focused on the strategies and techniques, not on specific tooling. That you can learn in other places. We went beyond a simple micro-benchmarking showcase. Jarek explained that we have multiple levels of performance tests: - benchmarking, - latency tests, - throughput tests, - load tests, - stress tests, - endurance tests, - capacity tests, - degradance tests. He also shared his practical advice on starting with them, not getting mad, and not being too afraid even to try that. We also discussed marketing and how to apply lessons from Neo4J performance testing to the regular systems! This is a free preview of a paid episode. To hear more, visit www.architecture-weekly.com
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00Okay. Welcome. Welcome. Hello everyone. Thank you for watching this webinar. This time we will have a really, really special guest and I'm really thrilled that we have it. Jarek with us because Jarek currently your official title is senior staff software engineer, but Jarek is working on Neo4j and he's responsible for performance, benchmarking and all the other lies.
SPEAKER_00A lot of lies. Yeah. Plus, one of the reasons that we are here is because that thanks to Jarek, I also started my speaking career. So he placed a seat to be here a few years ago when I first did my conference talk on the talk that Jarek was organizing. So if you're not from Poland, then Jarek is our local hero.
SPEAKER_02It sounds terrible.
SPEAKER_00Yeah, I'm flattering Jarek, especially because he doesn't like that. But yeah, Jarek, could you tell us why did you found out that taking care about the performance and being performance engineer is something that you'd like to do? I'm not sure, but for me, that doesn't sound like a first thing that you have in mind when you're starting your engineering career. Or maybe you had that since the beginning? Mm-hmm.
SPEAKER_02No, I didn't. So it happened by accident, like most of things in life. Yeah, I think it came to me quite late, but I like it. like after maybe 10 or 12 years in my career, but I actually care about performance and I'm really into it because to be honest,
SPEAKER_02I got bored with day-to-day coding. No, we talked before, but you know, it's like everybody talks about we are working on innovative products and we do like, you know, unique and unusual things, but it's not. I was changing jobs, wait, I'm not super often, but like every three to four years. And, you know, after some time I realized actually I'm doing the same stuff over and over again.
SPEAKER_02And I don't, and I had my like, you know, I would say short, but yeah, short adventure with management when I realized this is not for me, but I really, I'm not good with people. So when I came back from my like being manager and chief architect experiment, I said, okay, I don't want to do, you know, management. That's not for me. I don't enjoy it. I don't enjoy writing repeatable code and pushing JSON back and forth in different ways,
SPEAKER_02but I still love coding. And then I realized that I'm really into digging into the systems and understanding how they work. uh you know going through all the layers uh strictly to hardware level and that's funny for me uh i know that's weird uh people look at me and say okay it's not funny it's super interesting i think uh so yeah this is why i realized that this is
SPEAKER_02um I was always looking for something that is not only coding. It's like coding is, I don't know, 20% of your job. Understanding the system is 80% of your work. And, you know, Benchmarking performance requires you to really understand how the system works. Dig deep into like the silicon, not necessarily understanding writing in assembly code.
SPEAKER_02I don't do it. I can read it, but I cannot write it. But yeah, I thought, okay, that's fun. That's the one thing why I moved to it. And the second reason is I at some point of my career, I was like on site disaster engineer. So basically, every time there was a disaster in a system, somebody called me, I don't know why.
SPEAKER_02And I was always working and always getting like performance problems. So I think the fate was for me to work on benchmarking and somebody else trying to show me what they should work on performance because every time I had production issues, it was like related to performance. At some level, it's always a performance problem, except when it's security. But funny thing, I once had security issue, which at the end revealed to be a performance problem.
SPEAKER_02But what happened, we leaked data because of the performance problem. So yeah, this is how I got here.
SPEAKER_00I thought that you would say that you managed to make your old past system work, then make them right. And now is the time to make them fast.
SPEAKER_02Yes, yes, exactly.
SPEAKER_00Yeah. Yeah. Do you think that your past experience, like I would say holistic experience, because you were like chief architect, you were consultant, you were developer, and so you were a lot of hats. Do you think that it helps you in like working on performance? Because I think that at least for me, the typical stereotype of person interested in the performance is,
SPEAKER_00you know, this geek that went pretty down the rabbit hole, someone with a good mathematical background and really good Like with looking just straight into the, as you even mentioned, the silicon, so assembly, et cetera. So what are your thoughts on that?
SPEAKER_02I think it depends on the type of performance tests or type of benchmarks you you are up to and the kind of performance issues you're up to. So what I'm trying to say is like, okay, if you optimize, I mean, gaming library, yeah, you have gaming engine and you are optimizing something for the pathfinding algorithm for
SPEAKER_02gaming or some rendering algorithm, then yes, all my experience is useless. uh because it's pure math and silicon and you know gpu architecture and memory how memory works and so on and so forth uh but if you are like i would say systems engineering perform system performance engineer so it's not like low level performance engineer but system performance engineer
SPEAKER_02It means you need to understand how system works, but you have different components, but some things are, you know, synchronous, some things are asynchronous in the system. How databases work, how your runtime works, so, you know, be it JVM or .NET. So I think... The more you see, the better performance engineer you are, in my opinion. If you want to be like system performance engineer.
SPEAKER_02Because, you know, I think the whole trick with performance testing and performance tuning is to understand how system works. No, it's like with the car, you need to pick up, look at the engine and go deeper and deeper. So if you understand, the more layers you understand, the better for you. Because I love this, I don't know, I don't remember the title of this blog post,
SPEAKER_02but there are like seven or 10, something like seven or 10 deadly sins of performance engineer. And one of the things is beware of dark spots. So basically, the most dangerous things in your work is the things you don't know, you don't know. Because when you make assumptions, right, you know, the database works this way, or indexes work this way, or, you know, Kafka works this way. And you make an assumption. And in most cases, your assumption is wrong.
SPEAKER_02And you make some, you know, performance decisions or suggestions to improve things based on false assumptions. So yeah. I think like the vast experience on different layers, you know, architecture, being architect, coder, and what's important, I think kind of sysops person. So understanding the operating system and hardware layer really helps.
SPEAKER_00Yeah. So I agree with your perspective. I'm wondering because you already mentioned that there are multiple layers that we can look on the performance. And my guess is that each time someone tells something about performance, then quite often those people mean something different. And what I noticed, it's like one of those blocking discussion phrases like, will it scale?
SPEAKER_00Will it be performant? So from your perspective, what are those different types of looking at performance or how... what different types of performance testing do you see like how how can we maybe um make our and i mean our in general discussion about performance better um so i
SPEAKER_02think uh like Oh, this will be fun. It all depends, it's like if you execute, oh, let's go this way. If you run performance tests, you have a performance scenario and you are running performance test. I think the most important thing is to answer this question, what you want to get from it? What kind of answer you are looking for?
SPEAKER_02Because in most cases, what you look, you are looking for is, you know, the latency or throughput. So this is like kind of load test when you have, you select specific load level, you know, 500 concurrent users, and then you look at some latency numbers or throughput numbers. So this is one layer. And I think it's the most often used layer,
SPEAKER_02and this is what you see when somebody endorsing their product is, our database handles X queries per second, X thousand million queries per second. I love this numbers, and when people make decision based on this, on a single number. That's one thing. Another thing is you can run the same performance test for a long time. And they are sometimes called endurance test. When you execute your performance test not for an hour or two hours,
SPEAKER_02but you run the load for a long time. And then in this case, you are not looking for like latency or throughput numbers, but you look for performance degradations over time, for example, because, you know, when you run system under heavy load for a long time, you can start seeing like lovely, small, tiny memory leaks. but don't show up during one hour or two hours, you can see no connection pools being exhausted.
SPEAKER_02And, you know, because you don't return back connections or resources back to the pool. So then, you know, it can be the same scenario, but with different parameters, like runtime, You can say, okay, I'm not looking for the performance numbers, but I'm looking for, you know, regression over time. And then, what's endurance test? Then you can take a look, okay, I want to see the scaling test. So I run the same scenario with different users and see what,
SPEAKER_02because every system has a limit of at which it can run faster. At some point, you know, the thing will flutter. You will have a flat line. It comes back to the queueing theory, of course. And of course, you know, AMDA low and universal scalability low. So then you run the same scenario with different number of users to see, okay, How we scale, where is the limit? Because if you run a different, you will have multiple data points.
SPEAKER_02You can, you know, approximate where is the end of your system. So when you have scaling test, you can have, but I never did it. Like you run your performance tests, like in microservices environment and you shut down one of the components. Yeah. You do like, what will happen? How will, how? the shutdown of your one of microservice will impact your performance. I never did it,
SPEAKER_02but you know, if you look at books about performance, this is one of ways of looking at it. So basically it's scaling, it's load test, it's endurance test when you have like a disaster, kind of disaster recovery test. But these are all like system level tests. So what you do, you need to start a copy of the environment, the database with services, with endpoints and so on.
SPEAKER_02And then you have the lowest possible way, a level of tests. We call it benchmarks or micro benchmarks. When you don't start the whole system and what you do during the test, you exercise like single function. It's like I like to compare unit test and benchmarks. Like, you know, benchmarks are the level of the smallest unit. So the performance test, end-to-end test with different flavors and then you have benchmarks.
SPEAKER_01Mm-hmm.
SPEAKER_00I think that I even saw that on one of your talks that you said that we have sometimes the culture of benchmarketing. So there are many, many companies that are just, you know, giving a lot of numbers and just bragging about it.
SPEAKER_02Yeah. So benchmarking, I learned that when I joined Neo4j, I learned about benchmarking. And, you know, our general strategy is we avoid playing the numbers game. So, you know, it's pretty hard to find our benchmarking numbers. We do a lot of benchmarking. You know, you have like full-time six people working on it all the time. This is not our side job.
SPEAKER_02We are like seven hours, eight hours a day, excluding benchmarking stuff. But, you know, the marketing game with numbers... I saw so many cases where, no, how often was it? Like, I really like to ask this question. If you have with some company publishes some numbers about a product, how often they share the code they used to do the benchmarks. Yeah. Because, you know, give me any number and I can design a benchmark to, you know, satisfy this number.
SPEAKER_00Yeah, there are those, I think they are called like tech empowering benchmarks, which are comparing different tech stacks like .NET, Java, etc. And they are actually showing their code. And if you look at the code, then it's just total bullshit code because it's... No one writes the code in this way. So even in theory, they are checking like the ASP.NET or Spring or any other web framework.
SPEAKER_00So in theory, they should give you like end-to-end benchmarks, not micro benchmarking. Then the way they are coded and the tricks those providers are using to show that their tech stack is fast, it's incredible. Yeah.
SPEAKER_02I think the only kind of organization I trust is Spexa. I don't remember the name. It's benchmark spec or something. I will find this name of organization. So this is like what they do is they compare hardware, different CPUs, and then they compare, for example, JVM versus .NET. And this is like third party organization. So I have more trust with like third party testing benchmark test providers.
SPEAKER_02And they share everything from code to the specification of the infrastructure where they run the test. So yeah, you know, you can write any number and design benchmark to prove how to your right.
SPEAKER_00Yeah, I agree. Like when I was working at event store, and I wasn't responsible for from benchmarks, I was mostly part of the discussion on on that, because I was working on this weird title of developer advocate. And the people were asking me constantly, like, give me the numbers. How many requests can you handle? And when I was asking them, like, okay, but what are your application characteristics?
SPEAKER_00Then they rarely were able to give me their numbers about the sizes of their boxes, et cetera. And as you mentioned, in Event Store DB, we also had the set of internal benchmarking. But the intention was that in theory, we could show those benchmarks. They weren't so bad, but they just wouldn't give people any meaningful information because They were really raw and focused on the specific use cases, etc.
SPEAKER_00And they were more used to detect the performance degradation, etc. Rather than focus on the specific numbers. So maybe could you share some insights of how you're dealing with that in Neon4j? So what is your main... driver and how are you finding your ways which types of tests and you already mentioned a few to use for which use cases?
SPEAKER_02Yeah, so Basically, what I said, we don't play the benchmarking game. Obviously, we try not to play this game, but we have a really heavy suite of tests. And what we do, which is super interesting, it was a surprise to me when I joined, is we test the product on different layers.
SPEAKER_02because the problem with finding regressions is when you run the whole system, there's so many things happening in different threads and different parts of the code, but it's really hard to find the problematic code. So what we do is, of course we have micro benchmarks and they are mostly used in most cases for like
SPEAKER_02bottleneck finding and optimization. So we use benchmarks and micro benchmarks because we use JMH. library for Java, it's like we use, in most cases, make a benchmark to guide our optimizations. Because somehow when you, like, want to optimize the code, you need to have, like, really focused benchmark. Showing, okay, I'm exercising this function with this parameters, this output. So, you need really repeatable benchmark.
SPEAKER_02And that's one. And the second thing is you don't want like another processes disturbing you from finding. So this is one layer, this is the benchmark. And what is interesting then, because it's a benchmark, we don't start the server, the database server. We just run, for example, benchmark for specific operators in database. So if you have a query, query is turned into a query plan. The query plan is,
SPEAKER_02you know, when executed, it's like the simplest possible explanation of how databases work in five seconds. And the query plan is turned into three and, you know, the three is the tree of operators. And one thing we do, we test these simple operators. Like, you know, you have operators for sorting. So we just test sorting. Because we are graph database, we have an operator that do some kind of traversing of the graph. So we have benchmarks just for traversing. When you have no aggregations, the queries, you have predicates in the queries.
SPEAKER_02So we have like micro benchmarks for all these kinds of operations.
SPEAKER_00Sorry for interrupting, but so does that also mean that... you also need to have like a code that is aware that it can be benchmarked. Because as you said, if you if you if database was a monolith, and you wouldn't be able to just check the traversal, in a meaningful way, then it would be hard, right? Or almost impossible to get meaningful information.
SPEAKER_02So this is kind of some, this thing is side effect of how the query execution works and the query execution models, like, you know, the volcano model, the iterator model, they all have this concept of simple small functions. So I think we haven't thought about making benchmarking ready because it was the side effect of the writing database.
SPEAKER_02Because every query at the end is just a collection of small functions. Aggregation, whatever you call it, of small functions. So for database at this level, it's easier because you can isolate specific operations. But I imagine if you do something else, you need to write your code, but in a way that, okay, you can test specific functionality in isolation. You don't need to start the whole thing.
SPEAKER_02So, yes, if you follow the good practices and you like have the composable code and you do the proper separation, you will be able to benchmark it. I know TDD is on default right now. You know, it's people like saying it's crap and doesn't work. I'm just waiting for revival of TDD in next two, three years. We need to have something to talk at conferences. But it's like the same with TDD.
SPEAKER_02It's easier to test something that is encapsulated, have stable interface and doesn't have a lot of dependencies. So if your code stays stable, it also means you can write benchmarks for it. If your code isn't stable and you are not able to write tests for it, probably you will be not able to write benchmarks for it. So yeah. If you want to do benchmarking at the level of functions, you need to think about it,
SPEAKER_02how you organize your code.
SPEAKER_00Okay, so benchmarking. So what's the next level of... The next level is we start the database.
SPEAKER_02Okay, so this is like next level and this is our like more end-to-end performance test where we actually start the database loaded with specific data. So we have things called datasets and workloads where we have sometimes artificially generated data because we test some specific scenario. Sometimes these are things inspired by, you know, internet and our use cases,
SPEAKER_02because, you know, we say we work, this is our, these are the use cases for our database. Like, you know, for example, fraud detection. So we have a data set that emulates fraud detection or for example, recommendations. So we have people quite often use graph databases for recommendations. So we have a data set with products and customers. And on top of these data sets, we have queries. Now, you know, send to end, so we send queries
SPEAKER_02to database. But what's really interesting, we do it from single thread. Why? Because it's easier to it's easier to find problems. Because I really like what you do, because we are really focused on not necessarily numbers, but how we can quickly find the problem and how quickly we can optimize our code.
SPEAKER_02So the numbers are interesting. We use it at some point of time, but we are more interested in getting enough information to be able to optimize code or find regression.
SPEAKER_00So does that mean that you're more focused on the trends rather than the specific results?
SPEAKER_02That's true, we are looking at trends. So this is like we run from a single thread. So it's still when you run profiler with it, profiler with code, it's easier to find problems. And yeah, we run it from a single thread with different parameters. And we have, I don't know, around 30 data sets. Every data set has like around 10 queries, different type of queries. So you can imagine it's like quite solid number of possible scenarios.
SPEAKER_02Then if you, what's really like, this is when I'm suffering right now is like, on one side we have you know 30 data sets every data set has 10 queries so it gives you like 300 for example possible scenarios we can test our database and then you start adding dimensions uh this jvm version uh this product flag switched on switched off you know or this linux or this cloud provider and then you have like
SPEAKER_02explosion of possible parameters and combinations So this is like part of our work to say, okay, which parameter combinations are the right one? You could run everything, but it would cost you millions. So this is like one layer we have.
SPEAKER_00Can I ask about this single-threaded? So is it like you are running database in the single-threaded mode?
SPEAKER_02No, the database is multi-threaded, but the log generator, the client of the database is single-threaded.
SPEAKER_00So would it be like the always a single scenario is run in the single threaded mode?
SPEAKER_02Yeah. Yeah.
SPEAKER_01Yeah.
SPEAKER_02With different parameters, but like if you have a query and the query has parameters, we iterate over different parameters. but it's the same query over and over again. So we don't then face some, you know, caching issues and code warmup issues. It's like when it's fast, we see like optimal performance of a specific query, then it's easier to optimize for this optimal performance of specific query.
SPEAKER_00Okay, so you're ensuring that the database is warmed up. So it has, as you mentioned, the caches, etc. Yeah, so that's, that's, I think, one of the trickiest part that people don't realize is that, because on one hand if you have this warmed up database with all the caches everything best in fitting in memory if possible etc then that gives you a good uh measurement of
SPEAKER_00what you can achieve but then some people are saying yeah but my database won't be always warmed up so uh I would like to test like the real world scenario. So that's what many people I think are struggling. So do you also verify those use cases where like let's say either edge cases or rough real world use cases?
SPEAKER_02So yeah, for this, we have like two separate type of tests. So we call it load test. This is the scenario when we have like, you know, multiple threads, multiple concurrent users, the database probably doesn't fit into memory. And this is more customer-focused for customer-facing benchmarks because they exercise the real-world scenarios where we have many users,
SPEAKER_02we have logging going on all the time. the database doesn't fit on the memory, so you need to reach out to disk, and then the block manager or page cache performance or the eviction algorithms, if they are optimized for this scenario. So we have last layer, it's load test, and then we have something called ldbc, it's linked database council. So basically, this is standardized benchmark for graph databases.
SPEAKER_02In the relational world, you have TPC. In the graph databases world, you have DBC, where you have really, what we use is a social network benchmark. It basically simulates Facebook. So you have users, you have forums, you have messages, when you have links between users, the forums and messages form a tree of threads and so on. And they are like, you know, heavy queries and different.
SPEAKER_02What's like, LDPC on one point, okay, I cannot say it, express my personal opinion about LDPC. But one interesting thing about LDPC is, and this is like a lesson from designing benchmarks, but they have different types of queries. Because in the database world, on one side, you have tons of something called short queries.
SPEAKER_02So basically a query that touches one database, I mean one table, or touches one node in the graph, or touches only one document in a collection in MongoDB. So short queries, you do an index search, filter by values, you're done. And most of your traffic looks like this. And the LDPC is designed in a way that on one side, we have a bunch of different defined LDPs and different queries, but that's short reads. And they are quite often from multiple threads.
SPEAKER_02And then from time to time, we have like a monster coming, select star from table. So there are queries that touch bigger parts of the database, requires a lot of traversal of joins, and they don't run so often, but they run from time to time. just to enforce loading some data from disk if it doesn't fit into the memory.
SPEAKER_02And then you have, of course, write queries and update and delete queries in the meantime, changing stuff. So, yeah, I wouldn't, in my personal opinion, never, ever design such a workload. I would use existing workloads like TPC or LBBC because you get into territory of, okay, how we emulate the reward.
SPEAKER_00Yeah.
SPEAKER_02Either you record traffic. which I strongly recommend. Don't get into this game of designing your own workload, because there are so many things happening, and there is thread interleaving and queries interleaving, because you have concurrent users. But probably if you are not PhD, you will not design the proper workload like i mean with mixed queries and and and
SPEAKER_02different types of users so uh yeah i think if you are if you want to design something uh what looks like a real world and you can do it record the traffic and replicate it that's the best Unless you are looking for a specific scenario or you are adding a new feature to a product that is not covered. Then you have to sit down and think, okay, what kind of data input I need to prepare for the benchmark.
SPEAKER_02But if you have an existing system, just record it and replay. So yeah, this is what we have at the moment.
SPEAKER_00so am i correct that it's the harder like we as you were talking like benchmarks those latency throughput tests and then load tests then with each of this layer it's harder and harder to get them right and by right i mean um repeatable or meaningful because for I mean even for benchmarks I tried a few times
SPEAKER_00to create a repeatable benchmarks and I wasn't able because for instance on my local notebook there are other applications even if I think that I kill all of them then system are doing crazy stuff sometimes and I was always getting hard time to get those results on GitHub actions. Some people believe that we can measure the trends, as you said, but then it appears that those GitHub actions are heavily reused containers of some
SPEAKER_00VMs that other people are running them in parallel. And getting those is enough hard. And then if we are getting this load test or endurance test that you mentioned, then my guess is that nowadays, like in cloud, it's super hard to even know whether you have this isolated traffic, isolated network, isolated disks, et cetera. And my guess is that all of that has an impact.
SPEAKER_00Do you have some thoughts or... guidance, how, how to deal with that stuff? Or maybe I'm just totally wrong.
SPEAKER_02You're right. So you know, like, repeatability, repeatability benchmarks. So basically, I think if you have benchmark that doesn't have repeatable results, like basically you can measure because you measure, you know, the standard deviation or you measure coefficient of variance, you know, you get into the statistics land and you find a number that will tell you if your results are stable.
SPEAKER_02If you don't have stable results, it's better to throw away this benchmark because it will just create noise in your day-to-day work. Because sometimes it will be fast, so you'll be excited, and then you will be slow, you will start seeking the problem, and then you realize you are running on a different machine or a different data set. And, you know, you lost a couple of days. So it's really important, and part of the thing, like, with our team is, like, sometimes,
SPEAKER_02I think once a month, we go and look at queries that are not stable. I mean, not stable meaning don't have repeatable results. And try to design the query better or provide better parameters for the query. But yeah, in cloud environment, it's super hard. One thing, what you said, GitHub Actions, no, because you don't know where it's run. It's like, forget about it, yeah?
SPEAKER_02Your laptop, you have some control over it, but not full control. So what we do, for example, in AWS, we just use EC2 instances. And of course, that's funny thing, we start the EC2 instances every time. So we don't have like all time running EC2 instances. Before every benchmark, we go for what's quite expensive, but worth the effort to think that when we trigger benchmark,
SPEAKER_02we start the machine and we set up the machine from scratch. So always come clean. Always. Mm-hmm. Reinstall JVM, reinstall necessary dependencies, like we use a lot of profiling tooling around it. Start the clean database from scratch, empty directory, you know. So that's one thing. Another thing is, especially for database, you care about stable storage.
SPEAKER_02And there are ways to provide kind of stable storage. You either select NVMe drives and you say, okay, I don't share with anybody. I have past NVMe drives that are not shared with everybody. So you can trust the numbers as long as you trust cloud providers, of course. And then if we use EBS, for example, we use provisioned IOPS. So we say, okay, we expect this amount of IO operations.
SPEAKER_02Because it's quite easy to have stable CPU performance and throughput in cloud. I would say if your benchmark don't touch storage, You can get quite good stability, especially at the higher end type of instances, like four, six, eight cores, anything beyond four, in my opinion. This is not proven. It's like just gut feeling after six years in Neo.
SPEAKER_02But the stronger instance you get, the more stability you get in the performance numbers. So for CPU, if your benchmark doesn't do IO networking, yeah, EC2 can be quite stable. If you go into the networking IO land, you need to like pay extra and get like provisioned storage, provisioned IOPS, sorry, or some network with some kind of guarantees.
SPEAKER_02So we spent some time to finding the right instance types. So that's an interesting story. Like three years ago, we were migrating from on-premise benchmark infrastructure. So we had some servers, we bought some hardware, and we were running on bare metal machines. And then we decided, okay, the operational costs are quite high. We need to keep the versions of the operating system up to date and all the not so funny stuff.
SPEAKER_02So we said, okay, let's run this benchmark in the cloud and see how stable they are. It took us six or seven months experimenting with different instance types with different storage until we are not looking to get the same performance numbers because we don't care. We care more about trends. We are looking for the combination of storage, CPU, and memory that will give us the most stable results. So you need to spend some time trying different instance types and instance families.
SPEAKER_02For example, if you are in AWS, should I run on M family, which is compute optimized, or should I use M family, which is memory optimized? And select the right combination, and you can get quite stable results. But I think the stability of your results is worth it. Because then if something blows up, you don't spend time looking, okay, maybe this was wrong machine type. Maybe I ran on something that was running backup at the same time.
SPEAKER_02So, and of course you want to plain system as much as you can. So no, like, you know, special security, you know, crawlers or back automatic backup things. So plain vanilla Linux, if you are running on Linux with nothing extra except your system. Yeah.
SPEAKER_00Yeah, so if I would need to reiterate, then definitely ensuring the VM types and comparing that with the type of tasks that we are doing. So as you said, either it's more about memory or is it more about the CPU? If we're just... doing benchmarking, then EC2 should be fine by just benchmarking. I mean, as you said, no IO, no networking.
SPEAKER_00And if we need to have networking and IO, then we need to either accept that our benchmarks will have the higher threshold or need to pay more for dedicated instances. Yeah, yeah. Yeah, because we, for instance, yeah, it's... I think that it also requires to knowing a lot about the pricing and these weird tricks that cloud providers are giving to us.
SPEAKER_00Like, for instance... I was one doing the performance analysis. I wouldn't even say that it was a proper load testing, et cetera, but just getting more or less understanding how fast will be my streaming solution. I was streaming big files through the network. And then I wasn't able getting the proper resources because in the end, it appeared that someone in the company connected to this VPC network because they thought,
SPEAKER_00okay, this is already created. So why don't I reuse it? And because I was streaming a lot of data, then it was that the results were really vulnerable. It's... i i mean i knew that you know there is no magic it's still some network connection between one computer and another but we tend to believe that if it's cloud then it will automatically magically scale or be isolated and i quickly learned that uh
SPEAKER_02that's not the heart it will scale and it will be isolated only if you pay for it
SPEAKER_00Yeah, exactly. Or I was once testing my database solution and I selected some instance that it seemed that it was fine, but then it appeared that it was like the CPU was 20% of the usage, memory was higher, so it was looking nice, but then it appeared that this database... had the network limitations so if i wanted to to check more connections and more
SPEAKER_00activity then i would need to pay more to get the higher network throughput so uh there are a lot of things i think the this tricky parts in the cloud set up that so
SPEAKER_02i like we had this situation with uh S3 some time ago when, you know, we're testing some, you know, backup and restore things on our database side. And what happens is like in the beginning, S3 gives you all the throughput you have, but if you copy something for too long, it slowly degrades the performance. So I think that's one thing that I'm surprised people are ignoring,
SPEAKER_02that if you do run benchmark or if you do performance test, run metrics. Yeah, you know, everybody's talking about observability. So if you do performance test, do observability at the same time as well. Because once you get the number, I tell you, 200 milliseconds, is it fast or slow? You know, it's like, yeah, it's, it's, yeah. So,
SPEAKER_02uh, it's really important to like run your CPU metrics and IO and all you can, the things you can collect because, uh, when you get the number, the number is the tip of the iceberg. It's just an indication. Okay. You spent 200 milliseconds on this, but then how much, of this 200 millisecond was actually doing work and how much of this 200 millisecond was waiting. Because I think this is what I realized a year ago. It took me like 20 something.
SPEAKER_02But most of the time, what our computers are doing are waiting. Mm-hmm. It's not that our code is slow. They are just waiting. They could run faster under one condition. They would have the data they need. Because most of the time, our systems just wait for the data from network, from memory, from disk. So watch the metrics because if you see 200 milliseconds and then you see that your
SPEAKER_02CPU is like, for example, 10% of CPU. This is the case I had recently. Somebody asked me to look at their system. I cannot share exactly what it was, but it was super interesting. So the application was rendering, it was first time I was like, optimizing UI in my life, it was like, three weeks ago. So I didn't know how to approach it. Because, you know, I do databases.
SPEAKER_02And the rendering of some things on the UI was taking so long, you know, and they said, Okay, that's the problem with the code. And they wanted to me to look at it. What we found, long story short, what we found, the rendering was slow, not because the algorithm was slow, but it was because it was doing it in one thread. So we saw, just looking during the performance test of the metrics,
SPEAKER_02but we were like hitting system with a lot of requests to render something on the screen. And at the same time, CPU was at the level of 15%. So, like, number is interesting. But also looking at metrics can tell you where's the problem. So, it's really, really important. If you run benchmarks, whatever kind of benchmarks, have some profiling and metrics behind it.
SPEAKER_02Because numbers are not the goal. I mean, we use numbers to do regressions and we have some regression detection algorithms and every week we have a list of probably regressed things because it's always probably. Sometimes regressions are expected. So we use the numbers, as you said, as a trend to see if there is regression or speed up when we celebrate. but we run i think this is like quite unique uh in my opinion that's why i enjoy it
SPEAKER_02working here is we run we use benchmarks to collect metrics and to collect performance i mean the file records yeah that's that's the value of benchmarks because you then understand the system
SPEAKER_00So you are not like many I saw that many performance freaks are saying no, don't use the open telemetry don't use because it will be slowing down your application.
SPEAKER_02I'm sorry, I have to it's one huge total bullshit. First of all, you will run with telemetry in production. yeah so one thing uh and of course uh what we do is uh we if you are aware that some tool has an overhead and impacts your benchmarks what we do is we run the measurement benchmark and then we do profiling benchmark
SPEAKER_02So we do one run of benchmarking without tools just to get the numbers.
SPEAKER_00So just something like a baseline for the other?
SPEAKER_02Yeah. And then, so this is like without profiling, without telemetry, we just run to see raw results. And then we do another run with profiling enabled with, you know, in Java world, the iSync profiler is the king of profiling tools. So we run with async profiler, every tribe of programmers has various favorite tools to profile, Java has async profiler. And then we run with Perf for Linux or EPPF,
SPEAKER_02which is like the latest craziest thing in the performance world. So you can have a runs dedicated just to measures thing, and then you have runs dedicated to do profiling and metrics. But, you know, oh, sorry. It's like if you run your benchmarks and you don't measure your system at the same time, it's pointless, basically. Because at the end, you get the number. And how would you know where to optimize or maybe if you should optimize?
SPEAKER_02Maybe 200 is really the max you can get. And then you spend, you know, time optimizing code that couldn't be optimized, because this is the maximum we can get.
SPEAKER_00So let's say that I have more or less idea, like, what is my issue and what I would like to measure, let's say, and then I would like to, like, get those numbers. So there are some tools that can give you information out of the box. Like you mentioned like EBPF or there are some tools that you in theory plug into your system pipeline or even with the telemetry that you have this auto instrumentation.
SPEAKER_00But there are also people that are suggesting that you also always should need to have your own manual instrumentation or some fine tuning depending on your needs. So if someone is starting and want to get an understanding, let's say, why is it so slow? famous phrase, then how would you approach that from the real tooling perspective?
SPEAKER_00What would be the order of adding tools to start to get at least gradually those information?
SPEAKER_02So I really like this pretty old article about, you know, how to solve key performance problems. That was like saying, okay, you need to look at the performance problem as a box with layers and the top layers is users. Then you have the application, then you have your runtime. So JVM.NET, Python, will be JavaScript. And then at the end you have operating system slash hardware.
SPEAKER_02So basically you need to define metrics at each of these layers you are interested in. For example, you know, the user's layer. So you monitor how many users you have, basically. Of course, it's also worth to segment users by like heavy users, but I don't know. I have a case where ages ago when some user was sending, like usually we were getting one megabyte JSONs and this one user was sending
SPEAKER_02hundred megabyte JSONs always because of some internal procedures. So you need to also not only buy traffic, but like the size of the request and type of the request. But you need to build, understand your users and measure your users at the beginning. You know, what's the one thing. Then you have your application and then you need to decide what is important at the application level. At application level, probably if you have API, you know, your endpoint response times are interesting.
SPEAKER_02Then you need to take a look for all the things like pooling. Pooling is a source of all evil. It's so good, but it's also a source of all evil. So pool sizes and thread pools and connection pools. And when you go to your... manage runtime layer. So, you know, in case of JVM, you look at the garbage collector, you look at the JIT compilation, look at the safe pointing. And then at the operating system, you look at,
SPEAKER_02you know, IOPS, CPU, so time spent on CPU, time spent on IO operations. and contention time when you measure things like instructions per cycle to find, for example, when you have problems with memory. So, and it's all really well defined. If you go to like, you just go and read everything Brendan Gregg, it's my personal here.
SPEAKER_02So everything that Brendan Gregg wrote about performance and monitoring is about how and what to look for when you are observing the system. So like his book, the systems performance is like, okay, if you start with, you have no prior experience with performance test. I think systems design system performance by Brendan Gregg is the best thing to start with because you will understand
SPEAKER_02what you need on each layer to look for. And he has on his website really nice diagrams saying, okay, if you have application and this application does this, you need to have and measure these things. If you are measuring operating system and even name specific tools to use to capture specific metrics. So you need to watch for all layers. That's one thing, but these are just metrics.
SPEAKER_02So you have like specific data points. Another thing is really be a friend with the profiling tools. No, I know. Overhead of the profiling, yes. But I always have this discussion about, oh, but profilers have overhead. I mean, yes, they have overhead, but at the end, you are without data or with data. Which thing you, you know... So like having the data and understanding what system does or not having overhead, but don't have data.
SPEAKER_00Yeah. I would also add that people quite often don't realize how it is important to have, as you said, like having this starting point. So for instance, for database, it means every cached field, every database warmed up, or if we are doing, let's say, maybe, I don't know, like a serverless then ensuring that we are not randomly hitting the cold start if you're doing some load testing.
SPEAKER_02It takes time to reach the peak performance with Java, you know, it's like, yeah, pointing JVM, but you need to warm up the code.
SPEAKER_00Exactly. And those tools can do that. They just have a lot of statistical knowledge built in place. I'm always, when I'm seeing someone trying to do a serious load testing or benchmarking for each, then I'm like, really?
SPEAKER_02No, no, no, no, no, no. Especially in, like, it can work, kind of for compiled languages, like C++ or C. But for example, if you have JavaScript, Python, .NET, and you have just-in-time compiler, and your code is modified and recompiled, and it's optimized as you run the code,
SPEAKER_02your runtime is optimizing your code, So, it means, you know, people don't realize that, for example, Java starts to optimize the code by default after 10,000 executions. So, you need to run something at least 10,000 times. And I then see a loop with, like, you know, E equals 100. I say, okay, you don't measure your peak performance. You measure your warmup. You don't measure the peak performance of the code.
SPEAKER_02So yeah, there are tools and it's really, you can spend ages in writing your own, but why? I don't know. I don't see a reason. And, you know, don't be afraid, profilers. We run benchmarks together with profilers. So as we run and execute benchmarks, we run profilers with them. Because then we have lovely charts, which matter where we spend time.
SPEAKER_02And overhead is like at the moment, most of the tools around 1, 1.5%. It depends how many, what is your, of course overhead can get to 10% if you enable all features and sampling every nanosecond. So you need to, so what's important is to understand how profiler works. Is it sampling or machine? Maybe it's instrumented profilers. How often I take samples? That's why I love this thing,
SPEAKER_02because you need to really like, I feel like Dexter from the Dexter Laboratory. You need to really understand the things before you start to use it. If you want to play with, for example, providers, choose your profiler and understand how it works. Because if you understand how it works, even if it gives you some overhead, you are aware of this overhead. Or, like, sometimes, you know, profilers lie because of the way they work. And if you are aware that they lie and what they show you is probably something
SPEAKER_02that happened, but not necessarily The thing that happened, it's probably, it's like quantum physics. The profilers are kind of quantum physics. If you see it, it doesn't mean it happened. And the otherwise, if you don't see it, it doesn't mean it didn't happen. So if you understand the profilers, how will they work, then you will be like better at reading and what you see. You will not get into panic mode that, oh, it shouldn't happen.
SPEAKER_02So that's, I think a fun part. And also I think it can be terrifying part of doing performance, but you need to have this like childish curiosity to say, okay, why it happened? Why CPU works this way? Or why profiler? Because without it, if you even look at the metrics and numbers, You can, you know, have those decisions, assumptions, because there's like too many factors that can impact performance.
SPEAKER_00Yeah, so I think that as long as we are not playing this benchmarking game, but we are more into the trends, as we mentioned a few times, then having a stable overhead shouldn't be like a big deal because then it's like you are comparing numbers to numbers and not bragging that much. your requests are so fast and etc. Yeah.
SPEAKER_02I have a when you do like, you know, networking IO.
SPEAKER_00And I have a question because you even mentioned that you need to understand the traffic characteristic, the use cases, the data set you are working with. But so that seems to sounds to me like more high level understanding of what your system is doing. But then if you look on the performance articles, talks, et cetera, then what you see are mostly like all those weird
SPEAKER_00purely technical metrics at least that's what is put in front and I'm not sure if that's correct but my guess is that's quite often the case why people are scared of doing that because if they see only those metrics and they don't have prior experience with that then they cannot correlate like as you even said like if this is too many seconds okay this is just for me the number is it good or bad or my CPU is 20% then for instance someone can say like
SPEAKER_00okay that's great because I'm not pushing it to limit but it can also mean that you just bought too big box and you are overpaying for your instance size because it shouldn't be you know you are just paying four times bigger than in theory you should so it do you think that it should be like that or maybe how to approach that reasonably without being immediately scared at some point my guess is that you should be
SPEAKER_00scared as you say because those lies etc but maybe how to not run away immediately
SPEAKER_02after seeing that i would say don't don't uh don't take these numbers personally if you run benchmark If you write your first benchmark or if you run your first performance test in, you know, JMeter, Gatling, whatever, and if you see some number, just breathe in, breathe out. and write this number down. So what we do is every time we run benchmark, we write it to the database. We have a database with five years of history of benchmarks.
SPEAKER_02So that's one important thing is record everything. So we write down the results of our benchmark together with the metrics. So every time you can go back two years back and say, okay, what happened? It never happens because people care about what happened two weeks ago, but we keep, you know, just for five years of data. But, you know, write down this number and don't care about it. It's like it's your baseline. What you want to do is not make it slower.
SPEAKER_02So next time you run it and you see the same number, that's fine. If you see worse number, that means you have a problem. But you don't care about this number in the beginning. Just a number. This is my baseline. This is my reference point. And then that's the first step. Then you start running with tools like profilers or with telemetry observability tools.
SPEAKER_02We have this kind of interesting ceremony every week that teams gather. They look at not us, but the authors of the code. They go and look at the profiler recordings saying, okay, what we can optimize in it. So we don't go like, okay, let's find the problem because we don't know if it's the problem. It's one second per request. We are fine with it, but we start this thing, but okay, we start to look.
SPEAKER_02I think this is the part of the problems. When we look at the performance problems, when they appear, So usually too late, your infrastructure is down, you're losing money. The only thing what you want is just bring this system back to life. But if you say, okay, once a month, we are looking at the recordings and we are looking for places in the code we can optimize. When you start to optimize this code,
SPEAKER_02Run the benchmarks. If you see that your number is lower, it means you optimize the code. So it's like record the number, don't care about it. Make sure that things don't get worse. In the background, start the process of iterating over performance. like you iterate over product. It's the same, I think that's the, I try to force people to think of performance, how, I think the easiest way to convince people to do something is to say that it's not
SPEAKER_02different from what they already know. Performance is not different from you already know. You have a product, you have backlog of things, PMs, product owners are shuffling features, and at the same time, you don't care about performance. What happens if you, from time to time, look at the profiling recordings, look at the benchmarks, or look at the metrics and say, okay, this piece of code could have a better query. We could write a better query to optimize the code. Or we can have, oh, this algorithm could be run multi-threaded.
SPEAKER_02We don't need to do it in a single thread. Or we can use better library for, you know, sorting or parsing JSONs. But you should only care about things that give you improvement. Like in the product, you should only implement the features that give you improvement. How you know if something will give you improvement? If you look at the profiler recordings and metrics. So if you treat performance problems as features and iterate over and over and over again, I know it's hard because, you know, the features, this is what counts for business.
SPEAKER_02But if you, like, once a month say, okay, we found this query is slow, we need indexes on the database. Or this query is slow, we can write this query a different way. And then you have a safety net because you run benchmarks weekly, for example, and you know if it goes down, you didn't improve the process, then it's fine. so you know start running don't don't think about this number but use it for regressions and then start looking at the metrics it should be good yeah yeah
SPEAKER_00that's a that's a nice way of looking at things and gradually learning uh still when for instance each time i'm trying to understand those flame graphs Then I realized that I don't have any idea how to configure them correctly to start looking meaningful to me. I'm usually getting too much noise in those and it's hard for me to find the exact place that my application is responsible for.
SPEAKER_02Yeah, that's why you need some kind of isolated benchmarks, like we do when we have a single query or the same request over and over again, because then you don't have noise from other people doing other things. Because your flame graphs from the production systems, unless there is no disaster, they look like noise. Unless there is disaster where everybody is touched by exploding database connections. And then you see single stack frame occupying all the space.
SPEAKER_02That's why you need this isolated benchmarks.
SPEAKER_00So do you think that... Because I like your suggestion that we don't need to immediately understand what are those numbers unless... Because if we try to use them as a comparison, then we can still get the value from that. But let's say that someone would like to understand a bit more what's happening behind the scenes and then cry a lot. But... so do you think that you need to learn a lot about the statistics and you know how
SPEAKER_00systems internally work how deep do you need to go down the rabbit hole or what are the steps you would suggest for like a regular joe like me or like regular oscar
SPEAKER_02like me you're not regular oscar you know a lot of stuff so uh i think uh like, I like this mixture of, you know, books and hands on experience. Because books, you know, I usually books read books, after I understand how things work. Because they helped me like to make my knowledge, you know, in shelves and put it in place.
SPEAKER_02So for sure. Make your friends with the hardware a little bit. Like, you know, don't go to Intel or ARM specific. Don't go into this crazy discussion if Intel Skylake versus Intel, you know, whatever like they have edition has this specific pipeline for this specific operation. No. you're in the cloud you know mostly so this thing are not so important for you
SPEAKER_02because you're on the shared system but understand how modern cpus work how much they rely on caching and caches how you know the caches are important part of the cpu So that is like, you don't have to go super deep, but understand that the cores, for example, are interconnected. And there is a lane that connects all the cores and the cores in the CPU can talk to each other. And then there are caches, different layers of caches.
SPEAKER_02So it's the same for memory, the same for disks. Like basic understanding, for example, you will be amazed what queues are everywhere. Everywhere. And understanding the queues and understanding queuing is the crucial to understanding performance. So you're like, you know, first year of queuing theory is like first semester should be enough, you know?
SPEAKER_00I'm happy that you're saying that because in the previous editions, like the written editions by me, I'm showing different use cases based on explaining how connection pooling is built. And I immediately also got into let's use some queuing there.
SPEAKER_02The connection pool is like a queue. Yeah, it is. I think, yeah. So, understanding caches, understanding queues. I think for me, after all this year, the two most important data structures are cache and queue. Combining cache and queue, you can build production-grade systems. understand the operating system yeah and especially from the like perspective like
SPEAKER_02how this scheduling of processes work how the operations uh uh i operations work i hope there will be someday like uh book operating system and hardwares for high level programmers Because if you look for these topics, the books go really down deep to like, you know, beat level discussions. But sometimes you need like really good models.
SPEAKER_02If you are programmers, really good model how things work. in like high level spring developer language. Because you explain these things in much simpler language. Like what is this, I sent you the link of this article, how memory works for programmers. And I think we should have like how CPU works for programmers, how storage works for programmers. So like 16 pages, maximum 16 pages to help you understand
SPEAKER_02And this is when you explore all these layers, like operating system, your runtime, then it's really good to focus on tooling. Understand how profilers work. All these things like load generators, so Gatling, JMeter, K6S, yeah? Yes. Whatever you choose, as long as you understand how it works, it's good. It's not like Gatling is better than JMeter, JMeter is better than Gatling. Just choose the tool and understand how it works.
SPEAKER_02And what I was doing for some time, like when I was learning benchmarking at the level of single function, don't laugh, I was writing benchmarks to the data structures in Java. So, I wrote benchmarks like comparing linked list versus array list. So, I was benchmarking code that already exists and trying to, like, understand, you know, okay, if I got different numbers for linked list and array list,
SPEAKER_02why? And when you say, okay, to answer the why, you need to look at tools. Which tools? Because this is CPU-specific benchmark, you need to take a look at the CPU-specific tooling. So probably frame graphs and so on, yeah? So I would start first from understanding, then tooling, and then start writing, you know, thanks to existing code benchmarks. Mm-hmm. and trying to understand why some things in your standard libraries are faster or slower.
SPEAKER_00Yeah, that's a good advice. I really like it. And let's say that it's not surprising that you are good in giving advices. So I ask for one more. Because if you're doing regular testing, like unit testing, integration, acceptance, etc., So the graduation is kind of similar to also perf testing.
SPEAKER_00And some people are saying, like, you should be doing unit first test driven development. And someone is saying, no, you should start from acceptance test. Because if you do too many unit tests, then it will like cement your whole code and architecture. And it's better to first set up the main rules, let's say, for or the baseline for our behavior in our system.
SPEAKER_00Then in terms of perf tests, what would be your advice? Or do you think that you can give like whether to start from high levels or maybe load testing or maybe be more precise and try maybe not micro benchmarking because we already said that it's not so easy, but those single threaded focused tests, what would be your advice on that?
SPEAKER_02I think I would start from high-level end-to-end test. and then use regressions. Like, for example, if you find regression and you identify that this code path was the reason for regression, then say, okay, I will write specific benchmark for this specific, because we know this code already regressed. You can put some criteria, for example, like, okay, if it regresses three times over like, you know, six months,
SPEAKER_02it means, okay, there's a lot of changes probably going in this code, people are constantly changing, or the requirements are changing, whatever reason for changes. So then you use this high-level test to say, okay, which things need to be covered with benchmarks, like more specific. So I would go from, like, you know, top-level end-to-end, because they will give you better safety net, yeah.
SPEAKER_00Yeah, that makes sense because he already gives you the hints on what to focus on without spending too much time. And we all know that performance is not a priority unless it starts to be a priority.
SPEAKER_02I think performance and security are sisters. Yeah. If nobody cares about security until there is a breach and nobody cares about performance until there is like spectacular disaster.
SPEAKER_00So let's say that someone would like to build a performance-friendly system or performance-aware culture, whatever hype term we try to invent, then I will try to maybe... recap or rephrase what you said about your way in neo4j and maybe could you then say do you agree or where do you disagree with that is it okay yes because let's
SPEAKER_00say that we are building like a regular system and we would like to know let's say we know that Maybe performance is not automatically critical, but it is really important in our case. And so someone could start with either going up to down, so starting with load testing and setting up the environment. And for that, they would need to properly and carefully select the deployment and tooling to get
SPEAKER_00a predictable benchmark. So for instance, use EC2 or some other environment where we can have more control on the setup and more, let's say, being more sure that we have a proper isolation so no one is impacting or the noise is less than typically.
SPEAKER_00So for network, disk, etc. And we could start with setting up such an environment for the general needs and also ensuring that we are having all the metrics, telemetry, et cetera, because we want to have it as close as possible to the traditional way. Or we can start as you're doing with those single threaded, let's say. then maybe, for instance, the idea could be that we could run some benchmark for our important database
SPEAKER_00queries because most of the systems are query-heavy. So maybe those queries and then... gather those benchmarks and then use them as some sort of comparison whether we didn't make that wrong. And somewhere in between, it would be great to start gathering either this traffic or maybe trying to find whether there is a common or some written type of traffic.
SPEAKER_00I think that for some domain, it should be doable, like popular e-commerce. Maybe you can find some sample. We even had a guest in Architecture Weekly, Michael Dragalis. He built a shadow traffic, which is a tool that allows to simulate a real traffic. and understanding the difference between latency and throughput. For instance, one guy asked me that when I was working at Event Store,
SPEAKER_00he said, why is it Event Store allowing me to only have 2,200 records per second? Okay. That sounds weird. Like database with only 200 requests per second. And it appeared that his measurements were correct, but he was only running that in a single threaded mode. So from the single benchmark. So he didn't even try to run in parallel, like multiple workers. And when I did the same benchmarks, then...
SPEAKER_00with multiple workers, then the numbers were much, much more positive. So over a few 1000s of requests. So do you think that this type of approaching and trying to make our performance in a regular system? Would it be like a sane way? Or would you change something to that what I said?
SPEAKER_02I think like it's like if you start if you have already existing system and you develop something, it's used by customer, I would use this data to build your cloud test. I wouldn't do with like fancy finding what is my blah, blah, blah, important functionality because the customer will tell you what is important.
SPEAKER_02But if you start like, okay, you're building something and you are like, okay, we don't have real traffic, we'll have customers in six months, but we don't want to have dramatic performance, then you need to do some bets. It's like what you said, saying, okay, we know, we assume, we think, according to our research, according to our product owners, that this will be important thing, then I would not go from top level, I would go from bottom up in case of the new system.
SPEAKER_02and say, okay, I bet, I do a bet that this functionality will be critical. If it's slow, we will not sell the system, for example. Because, you know, search will be slow, and the search is like the critical functionality, then I will start by covering the search and worry about everything else later. Yeah.
SPEAKER_00Yeah. Yeah, that that makes sense. That makes sense. Okay, so I think that we that you already gave a lot of really practical hints and suggestions. I also will add those all the links that you send me and if you add more than of course, I will also add them below the recording. So for the final words, what would you like to say to your fellow developers and software engineers about
SPEAKER_00the performance?
SPEAKER_02Yeah, I probably noticed I kind of obsessed with this idea that we are guilty of the climate change. because of writing slow code. And then I realized in the beginning of this year that there is like this green coding initiative somewhat going on. So yeah, so I would say write fast code, please. really uh for two things it's fun uh and second it will save us some uh some energy
SPEAKER_02uh and a few trees so yeah that's my please write fast code okay
SPEAKER_00so fast or fast enough fast enough it's like good enough is fast enough yeah yeah i i i i take it i take it okay so um thank you yarek it was a pleasure i'm glad that you agreed to join the webinar because i did my humble benchmark intro but i'm definitely far from being an expert and i think that you are the closest to expert of all the people
SPEAKER_00that i know so yeah you are an expert actually so so thank you a lot thank you thank you very much for the invitation cheers folk cheers
Welcome to the new week! “How to document systems build with Event-Driven Architecture?” and “How to keep our understanding about evolving messages definitions?” Are one of the common questions I’m being asked. For many...
Welcome to the new week! Tomasz Ducin is back with us to explain the next parts of Frontend Architecture - this time with a deeper, more hands-on walkthrough of Frontend State Management on the React Query example. And...
Have you considered applying observability but struggled to match the strategy with the tooling? Or maybe you were lost on how to do it? I had a great discussion with Hazel Weakly about Observability beyond Open...
Welcome to the new week! For a long time, I’ve wanted to talk more about Frontend Architecture. In my projects, I always enjoyed delivering features end-to-end the most. That gave me the feeling of completing and...
"My favorite conspiracy theory is that the stuff we make in software actually has any sense. That's a big conspiracy, and you can see people believing that, and that's just not true. I mean, it is in some percentage,...