- SQL Server on Linux
- Jasmin Azemovi?
- 302字
- 2021-07-02 20:24:19
How it works on Linux
SQL Server is a product with a 30 years long history of development. We are speaking about millions of lines of code on a single operating system (Windows). The logical question is how Microsoft successfully ports those millions of lines of code to the Linux platform so fast. SQL Server on Linux officially became public in the autumn of 2016. This process would take years of development and investment. Fortunately, it was not so hard.
From version 2005, the SQL Server database engine had a platform layer called SQL operating system (SOS). It is a layer between the SQL Server engine and the Windows operating systems.
The main purpose of SOS is to minimize the number of system calls by letting SQL Server deal with its own resources. It greatly improves performance, stability, and the debugging process. On the other hand, it is platform dependent and does not provide an abstraction layer. That was the first big problem encountered before even beginning to think about creating the Linux version.
Project Drawbridge is a Microsoft research project that was created to minimize virtualization resources when a host runs many VM on the same physical machine. The technical explanation goes beyond the scope of this book (https://www.microsoft.com/en-us/research/project/drawbridge/). Drawbridge bring us to the solution of the problem.
Linux solutions use a hybrid approach that combines SOS and Liberty OS from the Drawbridge project to create SQL PAL (SQL Platform Abstraction Layer). This approach creates a set of SOS API calls that does not require Win32 or NT calls and separates them from platform depended code. This is a dramatically reduced process of rewriting SQL Server from its native environment to Linux platform. The next figure gives you a high level overview of SQL PAL (https://blogs.technet.microsoft.com/dataplatforminsider/2016/12/16/sql-server-on-linux-how-introduction/):

- The Android Game Developer's Handbook
- Building a RESTful Web Service with Spring
- 算法精粹:經典計算機科學問題的Java實現
- DevOps入門與實踐
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第2版)
- ExtJS高級程序設計
- Node.js:來一打 C++ 擴展
- 小型編譯器設計實踐
- Java圖像處理:基于OpenCV與JVM
- Mastering Apache Storm
- Java RESTful Web Service實戰
- 軟技能2:軟件開發者職業生涯指南
- 計算機常用算法與程序設計教程(第2版)
- 生成藝術:Processing視覺創意入門
- Java Web 從入門到項目實踐(超值版)