In this tutorial, you'll build a Nest.js application to get yourself familiar with its building blocks as well as the fundamental principles of building modern web applications. You'll approach this project by separating the application into two different sections: the frontend and the backend. Firstly, you'll concentrate on the RESTful back-end API built with Nest.js. You'll then focus on the frontend, which you will build with Vue.js. Both applications will run on different ports and will function as separate domains.
A unified Windows operating system across all devices, from Windows desktops to Xbox One. How does that sound? Well, that’s what Windows Core OS is all about.
Though Microsoft has not officially released it yet, there is a lot of expectation online about this operating system and its potential to change the world of smart devices.
CSS isolation در ASP.NET Core 6
در دنیای واقعی میزان حافظهی فیزیکی سرورها محدود است. در SQL Server 2014 راه حلی برای این مشکل تحت عنوان Buffer Pool Extensions ارائه شدهاست که محل قرارگیری آنرا در تصویر ذیل مشاهده میکنید:
Buffer Pool Extensions از یک فایل ساده که به آن Extension File نیز گفته میشود، تشکیل شدهاست و امکان ذخیره سازی آن بر روی هاردهای سریعی مانند SSD Driveها میسر است. این فایل، ساختاری را همانند page file، در سیستم عامل ویندوز دارد. در این حالت بجای اضافه کردن RAM بیشتر به سرور، یک Extension File را میتوان بکار گرفت. هر زمان که Buffer Pool اصلی تحت فشار قرار گیرد (به میزان حافظهای بیش از حافظهی فیزیکی سرور نیاز باشد)، از این افزونهی فایلی استفاده خواهد شد.
اطلاعات جزئیات Buffer Pool را توسط کوئری ذیل میتوان بدست آورد:
Select * from sys.dm_os_buffer_descriptors
نحوهی فعال سازی و تنظیم Buffer Pool Extensions
قبل از هر کاری بهتر است وضعیت افزونهی Buffer pool را بررسی کرد:
select * from sys.dm_os_buffer_pool_extension_configuration
همانطور که ملاحظه میکنید، در حالت پیش فرض غیرفعال است.
سپس یک فایل یک گیگابایتی را به عنوان افزونهی Buffer pool ایجاد میکنیم.
ALTER SERVER CONFIGURATION SET BUFFER POOL EXTENSION ON (FILENAME = 'd:\BufferPoolExt.BPE', SIZE = 1GB);
اینبار اگر کوئری اول را اجرا کنیم، چنین خروجی قابل مشاهده است:
این فایل به صورت خودکار در حین ریاستارت یا خاموش شدن سرور، حذف شده و با راه اندازی مجدد آن، باز تولید خواهد شد.
تغییر اندازهی افزونهی Buffer pool
اگر سعی کنیم، یک گیگابایت را مثلا به 10 گیگابایت افزایش دهیم:
ALTER SERVER CONFIGURATION SET BUFFER POOL EXTENSION ON (FILENAME = 'd:\BufferPoolExt.BPE', SIZE = 10GB);
Could not change the value of the 'BPoolExtensionPath' property
ALTER SERVER CONFIGURATION SET BUFFER POOL EXTENSION OFF
همچنین توصیه شدهاست که پس از غیرفعال کردن این افزونه، بهتر است یکبار instance جاری را ری استارت کنید.
چه زمانی بهتر است از افزونهی Buffer pool استفاده شود؟
در محیطهای read-heavy OLTP، استفاده از یک چنین افزونهای میتواند میزان کارآیی و پاسخگویی سیستم را به شدت افزایش دهد (تا 50 درصد).
سؤال: آیا غیرفعال کردن افزونهی Buffer pool سبب از دست رفتن اطلاعات میشود؟
خیر. BPE، تنها clean pages را در خود ذخیره میکند؛ یعنی تنها اطلاعاتی که Commit شدهاند در آن حضور خواهند داشت و در این حالت حذف آن یا ری استارت کردن سرور، سبب از دست رفتن اطلاعات نخواهند شد.
برای مطالعه بیشتر
Buffer Pool Extension
SQL Server 2014 Buffer Pool Extensions
Do you require a SSD to use the Buffer Pool Extension feature in SQL Server 2014
Buffer Pool Extensions in SQL Server 2014
SQL Server 2014 – Buffer Pool Extension
سفر به Angular بخش اول
In the eighteen years that I’ve been doing Web development, a lot has changed. We started out creating HTML pages to present static information to our users. We then used classic ASP to get database data and incorporate that into our pages. To use both of these technologies, we had to know a lot about HTML, CSS, and JavaScript. Along came .NET and we started rendering everything on the server-side. We forgot a lot about HTML, CSS, and JavaScript as Web Forms wrapped up a lot of that for us. Web Forms’ architecture closely mimicked the way developers created desktop applications. This was great for helping developers move to the Web, but unfortunately hid a lot of the power of the Web, and also tended to be a little slow.
نوشتن اپ های Native برای موبایل
In the February 2016 issue of MSDN Magazine, I showed how to create a custom scripting language based on the Split-And-Merge algorithm for parsing mathematical expressions in C# (msdn.com/magazine/mt632273). I called my language Customizable Scripting in C#, or CSCS. Recently, I published an E-book that provided more details about creating a custom language (bit.ly/2yijCod). Creating your own scripting language might not initially seem to be particularly useful, even though there are some interesting applications of it (for example, game cheating). I also found some applications in Unity programming.
دوره 7 ساعته Docker
In Visual Studio 2015 Update 2, you’ll notice that we’ve added some enhancements to previous features as well as added some new refactorings. The team focused on improving developer productivity by cutting down time, mouse-clicks, and keystrokes to make the actions you perform every day more efficient