# How to start reading fdb source code?

**URL:** https://forums.foundationdb.org/t/how-to-start-reading-fdb-source-code/1250
**Category:** Development
**Created:** [March 24, 2019, 2:20am UTC](https://forums.foundationdb.org/t/how-to-start-reading-fdb-source-code/1250 "2019-03-24T02:20:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![xkzhao](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/xkzhao/32/542_2.png) [@xkzhao](https://forums.foundationdb.org/u/xkzhao)
#### Post date: [March 24, 2019, 2:20am UTC](https://forums.foundationdb.org/t/how-to-start-reading-fdb-source-code/1250/1 "2019-03-24T02:20:59Z")

</div>

I have downloaded the foundation db source code . After compiling the code ,I succeed to launch the fdb server, and write a simple test code using python client API.

I want to read the source code to learn the inner implementation of fdb, but I don’t know how to start and where to start. Could anyone give me some suggestions?

---

<div class="post-metadata">

### Author: ![mengxu](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/mengxu/32/893_2.png) [@mengxu](https://forums.foundationdb.org/u/mengxu)
#### Post date: [March 24, 2019, 8:00pm UTC](https://forums.foundationdb.org/t/how-to-start-reading-fdb-source-code/1250/2 "2019-03-24T20:00:15Z")

</div>

Hi,

It may be a good idea to start from something simple. The GitHub repo has a label for “good first issue” at [here](https://github.com/apple/foundationdb/labels/good%20first%20issue).

As to where the code starts, the fdbserver code is in `fdbserver.actor.cpp`. The starting point is the `main()` function in that file.

BTW, it is also useful to review the videos from last year’s FoundationDB summit. It covers the high-level design ideas of Foundations. For example, [Evan’s talk](https://www.youtube.com/watch?v=EMwhsGsxfPU) gives a nice overview of the architecture.
