If you’re unfamiliar with kdb+, you may be sceptical of using it for many different reasons – perhaps you think it’s only used in finance, its processing power is overhyped, or you just don’t like the look of it. We have addressed some of the most common concerns in this post, with the aim to reassure anyone that’s on the fence:
No support collateral
Kx have developed a site providing all the information you need to get started with kdb+, from programming idioms to comprehensive cookbooks, found at https://code.kx.com/. Over the years, kdb+ developers have produced an abundance of technical blogs and whitepapers to assist on every possible application of the technology. There is also a wealth of support across platforms such as Stack Overflow, Quora, plus a very active google group where users are keen to share their experiences. Some highly appraised books are available on Amazon too:
- Q Tips: Fast, Scalable and Maintainable Kdb+
- Machine Learning and Big Data with kdb+/q
At first glance of the support content, you may think that q can only be run on the console (given that most of the examples use that), but that’s not the case. Where you execute kdb+ code is personal preference, and there are several choices for developers who would prefer to use an IDE. Some of the most common tools available for free are:
Hard to implement
kdb+ has been used extensively in the financial industry, tackling some of the most complex problems that big data and technology can offer. This has allowed a multitude of systems and processes to be developed that showcase the best results, and there is ample content online to guide kdb+ developers on resolving issues and discovering new ideas – it’s only a matter of finding the solution.
The most difficult part for experienced developers used to other technologies is appreciating that kdb+ has a slightly different way of approaching some things. For example, abandoning the idea of loops and using the powerful kdb+ adverbs instead, coding right-to-left, or simply the terseness of q, can all be intimidating at first. But once these concepts become innate, the power of kdb+ is unparalleled.
Difficult to debug
Debugging kdb+ has never been easier since the release of v3.5, which includes visual indicators and a backtrace of the q call stack. Kx Developer also has a useful quick-debugger which has a non-interactive backtrace that loads straight to where the error occurs.
Difficult to interact with other technologies
There are several open interfaces enabling kdb+ to communicate to and from other technologies, most of which are accompanied by thorough whitepapers showing you how to use them:
- Python (PyQ/embedPy)
Visit https://code.kx.com/q/interfaces/ for more information on the interfaces to and from kdb+. Users regularly develop new interfaces and upload them to the Kx Community website, so the list of available interfaces is continuously growing.
Cannot use it with other statistical packages
The interfaces detailed above allow kdb+ to be combined with a vast number of statistical packages. Many developers unite kdb+ with the likes of MATLAB or Python for their Machine Learning toolkits, or with R’s quantmod package to illustrate charts. You can read whitepapers detailing each interface here: https://code.kx.com/q/wp/#interfaces. Further to this, Kx have introduced the Fusion initiative, making it easier than ever to integrate with the statistical packages outlined above; more information can be found at: https://code.kx.com/q/interfaces/fusion/
One of the unique appeals of kdb+ is that it can efficiently handle big data at high frequency – this can give rise to the misconception that kdb+ needs a lot of hardware to feed it, however that is entirely dependent on the amount of data being processed. kdb+ itself is very economical when it comes to memory consumption, with most customers beginning with a 4- or 8-core system and growing from there. As the historical database builds up, multi-terabyte storage may be needed, but kdb+ is flexible – using local storage, SANs, or any combination to allows users to find the balance between optimal cost and performance benefits.
kdb+ has supported multithreading since v2.4 (2012). More recently, v4.0 (2020) added an additional level of multithreading via primitives, and it requires no code change by the user to exploit it. Multithreading thrives when used in high frequency applications, and it is an important tool for kdb+ architects in a multi-CPU processing environment. It will be a hinderance if applied to applications that are low latency as the overhead of the multi-threading process will outweigh the benefits.
Only for financial sector
Industries beyond finance are also looking for a solution to their big data needs, and the small footprint and flexibility of kdb+ provides just that. Today, kdb+ is used across a vast range of sectors from space exploration to Formula 1, pharmaceuticals to manufacturing, and telco to utilities. In 2019, Aston Martin Red Bull Racing announced their initiative to start using kdb+ for ingesting and analysing sensor data (read more at https://kx.com/news/kx-appointed-innovation-partner-to-aston-martin-red-bull-racing/), and even NASA’s Frontier Development Lab has been leveraging machine learning capabilities in kdb+ (read more at https://kx.com/news/kx-leverages-ai-to-solve-new-space-challenges/).
It can’t be that fast
Beyond the reputation of kdb+ being extremely fast at processing big data, there have been many tests carried out to prove it. The Securities Technology Analysis Center (STAC) researches technical challenges and solutions and develops technology benchmark standards within the capital markets industry. These are used by the largest financial institutions in the world to make decisions on which technology will address their problems. kdb+ continuously sets records in real-world financial data analytics benchmarks performed by STAC, particularly showcasing its speed, details of which can be read here: https://stacresearch.com/news/2019/06/16/KDB190430
We hope that this has addressed any burning questions at the back of your mind regarding kdb+, and if there is anything else that is left unanswered please get in touch with Neueda’s team of kdb+ specialists and they will be happy to help!
Data-at-Rest Encryption: Explore the options available with the kdb+ v4.0 release
Encryption is integral to protecting data from unauthorized users that try to read or corrupt confidential data.Our Data-at-Rest whitepaper explores encryption with the recent kdb+ v4.0 release; how it works, how to use it, and compares the performance of different techniques available, including encrypting and compressing simultaneously.
[vc_row type=”in_container” full_screen_row_position=”middle” scene_position=”center” text_color=”dark” text_align=”left” overlay_strength=”0.3″ shape_divider_position=”bottom” bg_image_animation=”none”][vc_column column_padding=”no-extra-padding” column_padding_position=”all” background_color_opacity=”1″ background_hover_color_opacity=”1″ column_link_target=”_self” column_shadow=”none” column_border_radius=”none” width=”1/1″ tablet_width_inherit=”default” tablet_text_alignment=”default” phone_text_alignment=”default” column_border_width=”none” column_border_style=”solid” bg_image_animation=”none”][nectar_btn size=”large” open_new_tab=”true” button_style=”regular” button_color_2=”Accent-Color” solid_text_color_override=”#ffffff” icon_family=”fontawesome” url=”https://campaigns.neueda.com/c/227897/kdb-data-at-rest-encryption” text=”Download Here” icon_fontawesome=”fa fa-sign-in”][/vc_column][/vc_row][vc_row type=”in_container” full_screen_row_position=”middle” scene_position=”center” text_color=”dark” text_align=”left” overlay_strength=”0.3″ shape_divider_position=”bottom” bg_image_animation=”none”][vc_column column_padding=”no-extra-padding” column_padding_position=”all” background_color_opacity=”1″ background_hover_color_opacity=”1″ column_link_target=”_self” column_shadow=”none” column_border_radius=”none” width=”1/1″ tablet_width_inherit=”default” tablet_text_alignment=”default” phone_text_alignment=”default” column_border_width=”none” column_border_style=”solid” bg_image_animation=”none”][vc_column_text]Or contact our specialist team on firstname.lastname@example.org