Questions and answers
29 questions from the community, answered by the
author in
#book-of-the-week
on Slack.
-
Tino asked
Hey Martin Kleppmann :) Thanks for taking the time! How important would you consider planning this process in different stages of a company? Should a start up immediately plan applications for data-intense use cases or should the focus be elswhere?
-
pie_f11235 asked
Hi Martin could you elaborate this (chapter 3) a bit more?
Counterintuitively, the performance advantage of in-memory databases is not due to the fact that they don't need to read from disk. Even a disk-based storage engine may never need to read from disk if you have enough memory, because the operating system caches recently used disk blocks in memory anyway. Rather, they can be faster because they can avoid the overheads of encoding in-memory data structures in a form that can be written to disk
-
Vladimir Finkelshtein asked
In different data teams (small startup, midsize, large internet company) which role is usually responsible for the design?
-
Vladimir Finkelshtein asked
It seems like you cover how different tools fit your tasks and other tradeoffs, and that is supposed to help you make your tooling choices. I wonder if in reality the choices are made based mainly on unrelated criteria. For example, how the pricing scheme of these tools matches your usage/budget or whether your team is already familiar with the tool.
-
Martin Mihal asked
I just check book quickly (chapters, topics etc) - just question before invest time into full reading . Are those topics (eg. Scalabality, Maintanance, Replication ..) in world of cloud (eg. ..Kinesis, S3 as Data Lake, Athena, Snowflake..) still worth to go deep into? All of those tools were created to handle those topic "in price"... (I mean it's important to undrstand those topics, question is how deep in this complex world we want/need to go)
-
Slim asked
Hello, thanks for writing a great book like designing data intensive applications. My question is; do you think that relational database is the suitable solutions for banking systems. According to some experiences I had with finance companies they prefer relational database because of the utility of transactions and it's straightforward to use. But sometimes I feel like it needs a graph database due to huge number of join and relation between tables which makes things complex. What do you think about that?
-
A McCauley asked
Hey Martin :wave::skin-tone-3: great book! What would you say from your experience, is one of the most overlooked principles when designing data-intensive applications?
-
A McCauley asked
And what is the most apparent challenge for teams/companies, etc. when designing data-intensive applications?
-
Slim asked
what's the approach that you recommend in microservices in order to guarantee the ACID properties in a transactions. I think it is not possible to guarantee ACID in distributed systems especially for rollback or when there is an error during the transaction.
-
André Duarte asked
Hey Martin! What would be the top 3 things you would add, remove or change from the book if you were to rewrite it?
Thanks for your time
-
Sal DiStefano asked
If you have not checked out Martin Kleppmann blog (opens in a new tab), you should. He is also on Patreon (opens in a new tab).
-
Uriah Stephenson-Ward asked
Hi Martin Kleppmann do you plan on updating or making any revisions soon? Is there any specific tech/concepts/etc coming out that you think is exciting or will likely become the dominant way of working?
-
Elias asked
Hello Martin, it’s a great honor, and thank you for your book! In the last chapter, you are writing about the future of data systems. And many of your ideas and approaches from this chapter are already common nowadays (derived state, unifying batch and stream, designing apps around dataflows, etc.). But from your point of view, in recent years in data systems:
- what are the things you expected to happen that didn’t happen (or you wish happened, or should’ve happened faster/at a bigger scale)
- and what are the things that happened but you were not thinking about them when writing the book?
Thank you!
-
Nikolay asked
Hello Martin. I read your article "Please stop calling databases CP or AP"
Could you please provide some clarification? Does it mean that when we are talking about a distributed queue we can not talk about strong consistency ( linearizability) at all. I mean that even if value X is written to queue it will not be immediately available for reading even for that client(read your own writes consistency model). So distributed queue can not provide strong consistency, can it? if so... what the strongest level of consistency can we have in distributed queue.
-
Nikolay asked
One more question from my side. if we have 2 nodes - A and B. A is a leader. B is a follower. client issue write(X,1) to a leader. if the leader uses 2PC in order to implement atomic commit. is it possible to have a case when A and B have different observable values before A sends ACK to client?
-
Nikolay asked
I have a question that I guess is related to chapter 12 of the DDIA book. Most databases have their own cache. For example, oracle, postgress has its own buffer cache ( its cache of blocks). Cassandra has a row cache. Oracle also has a row cache. On another side, we have solutions like Redis, Memcached. As far as I can understand database is moving in the direction to have a separate computation engine and separate storage engine. Why not have a separate cache engine? I mean it would be nice to have the ability to have cache "inside" database(integrated cache) but so that we would be able to scale this cache. as far as I can see it's not a way of modern databases. So there is probably something wrong with this approach. I mean we can not have an integrated scalable cache, can we?
-
Nikolay asked
Regarding Chapter 3 of the DDIA book. As I understand LSM is optimized for write compare to B+Tree because LST writes less to disks.
If I understand correctly in the case of B+Tree each block is mapped to a disk file and when we update even 1 byte in B+Tree we have to update the whole block. as I know in oracle we will not update each block when we change 1 byte. we will write the whole block to disk just in case of checkpoint (every 3 seconds in the background) and during update statement, we will only write to WAL. So when I do update idx_value = 1 where id = ? database will write only 1 byte to WAL and the whole block will be flushed to disk only during checkpoint ( for simplicity I skipped part related to oracle undo segment). So it looks like for a simple update we will have to write to disk the same amount of bytes in the case of LSM and B+Tree, does not it?
-
Nikolay asked
In chapter 5 of the DDIA book, you described multi-leader replication. Does it mean that in the case of multi-leader replication particular client can connect only to 1 leader? i mean that if we have 2 DC and lots of clients (say 10K) ... each of our clients connects to a particular leader and if that leader is crashed ... half of our clients can not connect to another leader? This part is not clear to me. as an example, it works like that in app calendar .. because i can connect only to 1 leader( which is on my own machine) . I can not connect to other clients :-). but what about 2 Data Center ( 3 DC)?
-
Alexey Grigorev asked
I have two questions from ankush khanna who's travelling now and can't ask the questions himself.
So the first one:
What do you think about the future of Serializable Snapshot Isolation?
-
Alexey Grigorev asked
Second:
Your book covers a lot of ground regarding Streaming, but with advancement and popularity in streaming will you write more material on topics like Kafka or Pulsar?
-
Alexey Grigorev asked
Hi Martin Kleppmann! You were working as a software engineer, but then went to academia and started working as a researcher. What motivated you to focus on research?
-
Jonathan Diaz asked
Hi Martin Kleppmann. It's awesome to e-meet you and I actually just finished reading DDIA a few days ago! One quote that stuck out to me was in the last chapter from Maciej Ceglowski "_Machine learning is like money laundering for bias_" which led me down a rabbit hole of finding the source here (opens in a new tab). What, in your opinion, can we do further so that ML algorithms/technologies don't strengthen existing biases? Both for data folks who develop these algorithms and those who use them.
-
Manoj Agarwal asked
Hi Martin Kleppmann I watched your amazing video series on Distributed Systems (opens in a new tab). Are videos of any other of your courses available publicly?
-
RH asked
Hi Martin,
Background: I work in a startup with a small engineering team; I mostly work on building NLP based microservices (data analysis to devops) in Python to serve other parts of our product. We have a few models in production which are working quiet well, and en route to building a few more.
*Question 1*: When I joined, we did not have a lot of data (few Gigabytes), but data is starting to build up (Terabyte). We currently store most of our data in Postgres. Most of the data is large blobs of semi structured texts that are uploaded by our customers to be processed and saved (the data format is similar to resumes). I believe that Postgres was the right DB to start with because it was very versatile and was good for making this happen “right now”, but not sure what the right thing to do is next? The queries are becoming slower and slower. I have thought of saving all the larger blobs of texts in a S3 bucket, and saving a retrieval link for that object in Postgres, but that makes retrieval slower. We retrieve the data very often.
*Question 2:* When the data is sent to us by the customer, we do not process it in anyway. We just save it the way it is sent by the customer. Do you think it is a good idea to process the data, and save “features” from the data in Postgres instead of reprocessing the data over and over again. That is, we should save the data the way the customer sent it (maybe in a S3 bucket) but we should process and save a version of the data that is relevant to our business case (this is something the engineering lead does not see value in, and prefer to beef up the servers).
*Question 3* What is a good way to structure a data engineering / systems engineering career i.e. what makes a really good data/system engineer?
-
Amr Alaa asked
hey Martin Kleppmann
thanks for having this week with us, I am really enjoying reading these excellent questions and your great answers here, I do not think I have an exact question actually,
just if you have a plan for another book, more specific or more advanced
I believe that in this DATA era that we live in, you should consider a series of books or even a bundle of courses to help data engineers acquire more advanced skills in theory and in practical also
thanks again
-
Alexey Shvets asked
Martin Kleppmann first of all thank you so much for you amazing work and legacy. In you video course you mentioned Leslie Lamport as a legend in the field of distributed system, but for many people you became a legend who made the field structured and accessible.
My question. What do you think, which programming language will dominate distribute systems development in the future? Now it is mostly Java, will it move to Golang/Rust? What is your personal preference?
-
Pavel Bukhmatov asked
Hey Martin Kleppmann! Thanks for a book and all the awesome research you do!
What is your opinion on implementing distributed storages using conflict-free replicated data types in future? The ideas behind CRDTs seems to be really compelling for distributed systems but the sheer complexity might overwhelm practical implementations as far as my limited understanding goes. What research / papers / books could you suggest on the topic?
-
Alisher asked
hi, Martin Kleppmann, thanks for the book and all your educational activity!
I'd like to ask you a bit broad question - what do you think are the most promising and perspective topics in distributed systems research in next 5 years? which topics are underestimated and require more
researchers there?
Thank you.
-
Nikolay asked
Hello Martin Kleppmann. Could you please help to build intuition about Version Vectors (opens in a new tab) and Vector Clocks (opens in a new tab). i read about them in chapter 5 but can not understand the difference. i am looking for some examples in order to build intuition.I know that it's a long story and i read also some articles from Riak founders. But i's not still clear for me ). Maybe some good example will let to understand it.
Want the whole story?
The answers above are the short version of Designing Data-Intensive Applications.