{"id":479919,"date":"2026-05-15T23:43:52","date_gmt":"2026-05-15T23:43:52","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=479919"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=479919","title":{"rendered":"\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0431\u043b\u0443\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430 (\u0447. 4)"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042d\u0442\u0430 \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e \u0442\u043e, \u043a\u0430\u043a \u044f \u043f\u0438\u043b\u044e \u0431\u044d\u043a\u0435\u043d\u0434, \u0443\u0447\u0443\u0441\u044c \u043d\u0430 \u044d\u0442\u043e\u043c \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u044d\u043c\u043e\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u0430\u0447\u0435\u043b\u0438.<\/p>\n<h3>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/h3>\n<ul>\n<li>\n<p><a href=\"#flashback\" rel=\"noopener noreferrer nofollow\">\u041c\u0438\u043d\u0438 \u0444\u043b\u044d\u0448\u0431\u044d\u043a<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#AI\" rel=\"noopener noreferrer nofollow\">AI \u0432 \u0434\u0435\u043b\u0435<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#learning\" rel=\"noopener noreferrer nofollow\">\u041f\u043e\u0437\u043d\u0430\u043d\u0438\u0435<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#real-learning\" rel=\"noopener noreferrer nofollow\">\u041e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0431\u043e\u0435\u043c<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#result\" rel=\"noopener noreferrer nofollow\">\u0427\u0442\u043e \u044f \u043f\u043e\u043d\u044f\u043b<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#conclusion\" rel=\"noopener noreferrer nofollow\">\u0412\u044b\u0432\u043e\u0434\u044b<\/a><\/p>\n<\/li>\n<\/ul>\n<p><a class=\"anchor\" name=\"flashback\" id=\"flashback\"><\/a><\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043d\u0430\u043f\u043e\u043c\u043d\u044e \u043e \u0441\u0435\u0431\u0435: \u00ab\u0443 \u043c\u0435\u043d\u044f \u0441\u0432\u043e\u0439 \u0431\u0438\u0437\u043d\u0435\u0441, \u0430 \u0432 IT, \u044f \u0442\u0430\u043a, \u0434\u043b\u044f \u0434\u0443\u0448\u0438\u00bb. \u0428\u0443\u0442\u043a\u0430. \u0412\u00a0\u043e\u0431\u0449\u0435\u043c, \u043f\u043e\u0441\u043b\u0435 12 \u043b\u0435\u0442 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u0432 \u0441\u0444\u0435\u0440\u0435 \u044f \u0440\u0435\u0448\u0438\u043b \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u0431\u0430\u0437\u043e\u0432\u043e\u043c\u0443 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u2013 \u0438\u043d\u0436\u0435\u043d\u0435\u0440-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442. \u0427\u0442\u043e-\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u00ab\u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u0441 \u043d\u0443\u043b\u044f\u00bb, \u043d\u043e \u044f \u043d\u0435 \u043b\u044e\u0431\u043b\u044e \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441 \u0442\u0435\u043e\u0440\u0438\u0438, \u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u0442\u043e\u0440. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0442\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0434\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438, \u043e\u0442\u0442\u0430\u0447\u0438\u0432\u0430\u044f \u0441\u0432\u043e\u0438 \u0437\u043d\u0430\u043d\u0438\u044f, \u043d\u043e \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u0438\u0445 \u043d\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c. \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u043e, \u043d\u043e \u0442\u044b \u043d\u0435 \u0443\u0437\u043d\u0430\u0435\u0448\u044c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0433\u043e\u0440\u044f\u0447\u043e \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u0442\u0440\u043e\u0433\u0430\u0435\u0448\u044c. \u0415\u0441\u0442\u044c \u0435\u0449\u0435, \u0432-\u0442\u0440\u0435\u0442\u044c\u0438\u0445, \u0442\u0435\u043f\u0435\u0440\u044c \u0435\u0441\u0442\u044c \u0418\u0418 \u2013 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u044d\u043d\u0446\u0438\u043a\u043b\u043e\u043f\u0435\u0434\u0438\u044f \u0438 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a \u0432 \u043e\u0434\u043d\u043e\u043c \u043b\u0438\u0446\u0435 (\u0445\u043e\u0442\u044f \u0442\u0443\u0442 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0438\u0445 \u041d\u041e).<\/p>\n<p>\u041a\u0430\u043a \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b <a href=\"https:\/\/habr.com\/ru\/articles\/1029736\/\" rel=\"noopener noreferrer nofollow\">\u0440\u0430\u043d\u044c\u0448\u0435<\/a>, \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0443\u0447\u0435\u0431\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438 \u043d\u0430 \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u0439 \u0431\u0438\u0440\u0436\u0435. \u0412\u044b\u0431\u0440\u0430\u043b \u0441\u0442\u0435\u043a, \u0434\u0430\u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u043b \u043a\u043e\u0435-\u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<blockquote>\n<p><strong>\u0412\u0430\u0436\u043d\u043e\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/strong>: \u0443 \u043c\u0435\u043d\u044f \u0441\u0430\u043c\u044b\u0439 \u0434\u0435\u0448\u0435\u0432\u044b\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433, \u043d\u0435 VPS. \u041f\u043e\u0447\u0435\u043c\u0443? \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u00ab\u0443\u0436\u0435 \u0431\u044b\u043b\u00bb, \u043f\u043e\u0434 \u043c\u0435\u043b\u043a\u0438\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b    <\/p>\n<\/blockquote>\n<p><a class=\"anchor\" name=\"AI\" id=\"AI\"><\/a><\/p>\n<p>\u0422\u0430\u043a \u0432\u043e\u0442. \u0421\u043f\u0443\u0441\u0442\u044f \u043f\u043e\u0447\u0442\u0438 2 \u043d\u0435\u0434\u0435\u043b\u0438, \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u0438\u0437\u0443\u0447\u0430\u044f \u0447\u0442\u043e \u0438 \u0437\u0430\u0447\u0435\u043c, \u044f \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b \u0431\u044d\u043a\u0435\u043d\u0434. \u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f \u0437\u043d\u0430\u044e, \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0442\u044c \u043e\u043f\u044b\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0418\u0418, \u043d\u043e \u044f \u0432\u0430\u0441 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e, \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442: \u00ab\u044f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0441\u044f \u0441 IT, \u043f\u043e \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u044f \u043f\u0440\u0435\u043f\u043e\u0434\u0430\u0432\u0430\u0442\u0435\u043b\u044c \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u044b, \u043d\u043e \u0440\u0435\u0448\u0438\u043b \u0432\u0441\u0451 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c, \u0438 \u0437\u0430 \u043e\u0434\u0438\u043d \u0432\u0435\u0447\u0435\u0440 \u0441 \u0418\u0418 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0443\u043f\u0435\u0440-\u043f\u0443\u043f\u0435\u0440 \u043c\u0435\u0433\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u00bb. \u041a\u0430\u043a, \u041a\u0430\u0440\u043b?    <\/p>\n<p>\u0412\u044b \u0432\u0438\u0434\u0435\u043b\u0438, \u0447\u0442\u043e \u043e\u043d \u0432\u044b\u0434\u0430\u0451\u0442? \u041e, \u044d\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u0439 \u043a\u043e\u0434, \u043d\u043e \u044d\u0442\u043e \u00ab\u0431\u043e\u043c\u0431\u0430 \u0437\u0430\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u00bb. \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043c\u0435\u043d\u044f \u043d\u0430\u043f\u0440\u044f\u0433\u043b\u0430 \u043a\u0443\u0447\u0430 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043d\u0430 \u0432\u0441\u0451. \u041b\u0430\u0434\u043d\u043e, \u043c\u043e\u0436\u0435\u0442 \u044d\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0442\u0430\u043a \u0438 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f. \u041f\u043e\u0442\u043e\u043c, \u0432\u044b\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u0435\u043d\u0434\u043f\u043e\u0438\u0442\u043d\u043e\u0432 ISS MOEX), \u0438\u043b\u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u0437\u0430\u0432\u0435\u0440\u0435\u043d\u0438\u044f, \u0447\u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0434\u043e. \u0421\u0430\u043c\u043e\u0435 \u043f\u0440\u0438\u043a\u043e\u043b\u044c\u043d\u043e\u0435 \u2013 \u044d\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u0418\u0418 \u0432\u044b\u0434\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u043b\u0438\u0441\u0442\u0438\u043d\u0433 \u0444\u0430\u0439\u043b\u0430, \u0430 \u043f\u043e\u0442\u043e\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435, \u0442\u0438\u043f\u0430 \u00ab\u044f \u0442\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0439\/\u043d\u0435\u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439\/\u0435\u0449\u0435 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u043e\u0434\u0445\u043e\u0434, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435, \u0447\u0442\u043e\u0431 \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u043a\u0430\u043a \u0447\u0430\u0441\u044b \u2013 \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e-\u0442\u043e \u0438 \u0442\u043e-\u0442\u043e\u00bb. \u0411\u043b\u0438\u043d, \u0430 \u043a\u043e\u0433\u0434\u0430 \u043b\u043e\u0432\u0438\u0448\u044c \u0435\u0433\u043e \u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0435\/\u043d\u0435\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u00ab\u0434\u0430, \u0432\u044b \u043f\u0440\u0430\u0432\u044b. \u0421\u0435\u0439\u0447\u0430\u0441 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044e. \u0418, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043a\u0440\u0438\u0432\u043e\u0439 \u043a\u043e\u0434 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043a \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u00bb.     <\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u043b\u044b<\/summary>\n<div class=\"spoiler__content\">\n<blockquote>\n<p>\u0422\u044b \u043f\u0440\u0430\u0432 \u043f\u043e \u043e\u0431\u043e\u0438\u043c \u043f\u0443\u043d\u043a\u0442\u0430\u043c.<\/p>\n<p><strong>\u041f\u043e \u043f\u0435\u0440\u0432\u043e\u043c\u0443<\/strong> \u2014 current_price * quantity \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0432\u0435\u0440\u043d\u043e. \u0420\u044b\u043d\u043e\u0447\u043d\u0430\u044f \u0446\u0435\u043d\u0430 \u043e\u0431\u043b\u0438\u0433\u0430\u0446\u0438\u0438 \u0443\u0436\u0435 \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0430\u043c\u043e\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u2014 ISS \u0435\u0451 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043d\u043e\u043c\u0438\u043d\u0430\u043b\u0430. \u041d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c.<\/p>\n<p><strong>\u041f\u043e \u0432\u0442\u043e\u0440\u043e\u043c\u0443<\/strong> \u2014 \u0434\u0430, \u043f\u043e\u043b\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0431\u0435\u0441\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u0435\u043d. \u041c\u044b \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0431\u0435\u0440\u0451\u043c \u0446\u0435\u043d\u0443 \u0438\u0437 ISS, \u0442\u0430\u043a \u0447\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u043e\u043c\u0438\u043d\u0430\u043b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0438 \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u2014 \u043b\u0438\u0448\u043d\u044f\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0438 \u043d\u0430 \u0447\u0442\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442.<\/p>\n<\/blockquote>\n<p>\u0418 \u044d\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043e\u043d \u043c\u043d\u0435 \u044d\u0442\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u043b \u0432 \u043a\u043e\u0434, \u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 &#171;\u043a\u0440\u0438\u0432\u044b\u043c\u0438&#187; \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u043d\u0430\u0448\u0435\u043b \u043f\u043e\u0447\u0435\u043c\u0443 \u0438&#8230; \u0434\u0430, \u044f \u043f\u0440\u0430\u0432.<\/p>\n<blockquote>\n<p>ISS \u0445\u0440\u0430\u043d\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e 2 \u0434\u043d\u044f \u0432\u043d\u0443\u0442\u0440\u0438\u0434\u043d\u0435\u0432\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u2014 \u0437\u043d\u0430\u0447\u0438\u0442 \u0442\u0430\u0439\u043c\u0444\u0440\u0435\u0439\u043c\u044b 1\u043c \u0438 5\u043c \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0439 \u0434\u0435\u043d\u044c.<\/p>\n<\/blockquote>\n<p>\u042d\u0442\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u0442\u0430\u043a, ISS \u043e\u0442\u0434\u0430\u0451\u0442 \u0441\u0432\u0435\u0447\u0438, \u0447\u0443\u0442\u044c \u043b\u0438 \u043d\u0435 c 2008-10 \u0433\u043e\u0434\u043e\u0432 \u043f\u043e 7 \u0440\u0430\u0437\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u043c, \u043d\u043e \u0442\u0430\u043c \u043d\u0435\u0442 5 \u043c\u0438\u043d\u0443\u0442. \u042f \u0434\u043e\u043b\u0433\u043e \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u043e\u043d\u044f\u0442\u044c \u043f\u043e\u0447\u0435\u043c\u0443 \u044f \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u043f\u0443\u0441\u0442\u043e\u0439 \u043c\u0430\u0441\u0441\u0438\u0432.<\/p>\n<blockquote>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e, \u0442\u044b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043c\u044b\u0441\u043b\u0438\u0448\u044c. \u0420\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 MySQL \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0430\u0437 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443 \u2014 WebSocket \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0434\u0430\u0451\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430. \u0421\u043c\u044b\u0441\u043b\u0430 \u0432 \u043d\u0451\u043c \u043d\u043e\u043b\u044c.    <\/p>\n<\/blockquote>\n<p>\u0410 \u0442\u0443\u0442 \u043e\u043d \u043c\u043d\u0435 \u043d\u0430 shared-\u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0435 (\u0434\u0430 \u043e\u043d \u0437\u043d\u0430\u0435\u0442 \u043c\u043e\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f) \u0441\u043e\u0432\u0435\u0442\u0443\u0435\u0442 \u043c\u043d\u0435 \u0437\u0430\u043c\u043e\u0440\u043e\u0447\u0438\u0442\u044c\u0441\u044f \u0441 WebSocket (\u044d\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e?) \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0430\u0437 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443, \u0430 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435, \u0435\u0441\u043b\u0438 \u0447\u0430\u0449\u0435 \u043c\u0438\u043d\u0443\u0442\u044b \u0432\u043e\u043e\u0431\u0449\u0435 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0438\u0437 \u043a\u044d\u0448\u0430 (\u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435 TanStack Query, \u043f\u0440\u0438 \u0447\u0435\u043c \u0441\u0430\u043c \u0418\u0418 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b).     <\/p>\n<\/div>\n<\/details>\n<p><a class=\"anchor\" name=\"learning\" id=\"learning\"><\/a><\/p>\n<p>\u0424\u0443\u0443\u0445, \u0432\u0441\u0451. \u0412 \u0437\u0430\u0449\u0438\u0442\u0443 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u0434\u043b\u044f \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f, \u0432 \u0447\u0451\u043c-\u0442\u043e \u044d\u0442\u043e \u0434\u0430\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e. \u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435. \u042f \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u041d\u0430\u0434\u043e \u0440\u0430\u0437 \u0432 \u0441\u0443\u0442\u043a\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043a ISS, \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u0443\u043c\u0430\u0433 \u0438 \u0437\u0430\u043b\u0438\u0432\u0430\u0442\u044c \u0438\u0445 \u0432 MySQL \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u0431\u043b\u0438\u0446. \u0417\u0430\u0442\u0435\u043c, \u0435\u0436\u0435\u043c\u0438\u043d\u0443\u0442\u043d\u043e \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0441 ISS \u043a\u043e\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u0438 \u0442\u043e\u0436\u0435 \u0437\u0430\u043b\u0438\u0432\u0430\u0442\u044c \u0432 MySQL. \u0422\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0434\u043e\u043b\u0431\u0438\u0442\u044c ISS \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u043e\u0442 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u042f \u043b\u0443\u0447\u0448\u0435 \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0437\u0430\u0431\u0435\u0440\u0443 \u043a \u0441\u0435\u0431\u0435, \u0430 \u043f\u043e\u0442\u043e\u043c \u0440\u0430\u0437\u0434\u0430\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438\u0437 \u043a\u044d\u0448\u0430. \u041d\u043e \u044f \u043d\u0435 \u0437\u043d\u0430\u044e \u0432\u0441\u0435\u0445 \u043f\u0440\u0435\u043b\u0435\u0441\u0442\u0435\u0439 python (\u043c\u043e\u0439 \u0441\u0442\u0435\u043a \u0431\u044b\u043b Delphi+ADO+MS SQL. \u0414\u0430, \u044f \u0431\u0430\u043b\u043e\u0432\u0430\u043b\u0441\u044f \u0438 PHP, \u0438 Python, \u0434\u0430\u0436\u0435 Perl \u0447\u0443\u0442\u043e\u043a, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0432 \u0441\u0447\u0451\u0442). \u042f \u043f\u0440\u043e\u0448\u0443 \u0418\u0418 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u0438 \u0438\u0437\u0443\u0447\u0430\u044e \u0435\u0433\u043e. \u0412\u0441\u0451 \u0437\u0434\u043e\u0440\u043e\u0432\u043e, \u0432\u0441\u0451 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. <\/p>\n<p>\u042f \u0440\u0430\u0434, \u043d\u043e \u043d\u0435 \u0434\u043e\u043b\u0433\u043e. \u041d\u0430\u0447\u0438\u043d\u0430\u044e \u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0443\u0447\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b (\u043f\u043e\u043a\u0430 \u043d\u0435 \u0432 \u0442\u0435\u043c\u0435 QA Automation). \u0412\u043e\u0442 \u0442\u0443\u0442 \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435: \u044f \u0432\u0438\u0436\u0443, \u0447\u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435 \u0442\u0430\u043a \u043a\u0430\u043a \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043e, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0441 \u044d\u0442\u0438\u043c (\u0431\u044b\u043b\u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u0435\u043d\u0434\u043f\u043e\u0438\u0442\u043d\u044b, \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u043b \u043f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u044e, \u0443\u0432\u0435\u0440\u044f\u044f \u0447\u0442\u043e \u0435\u0451 \u043d\u0435\u0442, \u0431\u0440\u0430\u043b \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0442\u0435 \u043f\u043e\u043b\u044f, \u0431\u0440\u0430\u043b \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0435\u0439 \u043d\u0435 \u0438\u0437 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435). \u041d\u0430\u0447\u0438\u043d\u0430\u044e \u0444\u0438\u043a\u0441\u0438\u0442\u044c \u0441\u0430\u043c, \u043f\u043e\u0442\u043e\u043c \u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0418\u0418. \u0421\u043d\u043e\u0432\u0430 \u0442\u0435\u0441\u0442\u044b. \u0421\u043d\u043e\u0432\u0430 \u0441\u0430\u043c, \u0441\u043d\u043e\u0432\u0430 \u0418\u0418. \u0418 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u043f\u043e\u0431\u0435\u0434\u0430! \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u043e. \u0412\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0432\u0441\u0451 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0431\u0435\u0440\u0451\u0442, \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442. \u0414\u0435\u043f\u043b\u043e\u0439.    <\/p>\n<p><a class=\"anchor\" name=\"real-learning\" id=\"real-learning\"><\/a><\/p>\n<p>\u0421 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u0437\u0433\u043b\u044f\u0434\u0430 \u0432\u0441\u0451 \u043e\u0442\u043b\u0438\u0447\u043d\u043e, \u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e \u0445\u043e\u0441\u0442\u0438\u043d\u0433? \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u00ab\u043e\u0442\u0436\u0438\u0440\u0430\u044e\u0442\u00bb 13% CPU, \u0432\u043c\u0435\u0441\u0442\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d\u043d\u044b\u0445 CPU. \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f. \u0422\u0443\u0442, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u044f \u0440\u0430\u0437\u0432\u0451\u043b \u0440\u0443\u043a\u0430\u043c\u0438. \u041e\u0442\u0434\u0430\u043b\u0441\u044f \u0418\u0418. \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043c\u0430\u043b\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043e\u043d\u0438 \u0434\u043e\u043b\u0431\u044f\u0442 ISS \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 SSL \u0446\u0435\u0440\u0435\u043c\u043e\u043d\u0438\u044f\u043c\u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0431\u0443\u043c\u0430\u0433\u0443, \u0442\u0430\u043a \u0435\u0449\u0435 \u0438 MySQL \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0434\u0435\u0440\u0433\u0430\u044e\u0442, \u0442.\u0435. \u0434\u043b\u044f 100 \u0431\u0443\u043c\u0430\u0433 \u2013 \u044d\u0442\u043e 100 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439, \u0438 200-300 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0439 \u043a \u0431\u0430\u0437\u0435 \u0447\u0435\u0440\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0441\u043b\u043e\u0439\u043a\u0443 (SQLAlchemy). \u042d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e 1 \u0441\u043a\u0440\u0438\u043f\u0442, \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0432\u0441\u0451 \u0435\u0449\u0435 \u0445\u0443\u0436\u0435: \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0431\u0443\u043c\u0430\u0433\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a ISS (\u0438\u0437-\u0437\u0430 \u043f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u0438 \u043e\u0442\u0432\u0435\u0442\u043e\u0432), \u0438 \u043a\u0440\u0430\u0442\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 MySQL. \u041d\u0435 \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0437\u0430\u043d\u0438\u043c\u0430\u043b \u0434\u043e 50-60% \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<p>\u041f\u043e\u0447\u0438\u043d\u0438\u043b\u0438. \u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u0435\u0441\u0441\u0438\u044e \u043a ISS \u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0448\u043b\u0451\u043c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u0442\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u0438 \u043d\u0430 native SQL \u0434\u0435\u043b\u0430\u0435\u043c bulk insert. \u0414\u043b\u044f \u043c\u0435\u043d\u044f \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u0432\u0441\u0451 \u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u0438 \u0432\u0440\u0435\u043c\u044f CPU \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0434\u043e 2-4%, \u0442.\u0435. \u0438\u043c\u0435\u0435\u043c \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.<\/p>\n<p>\u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043b\u044e\u0431\u0438\u0442 \u043f\u0438\u043d\u0430\u0442\u044c \u043d\u043e\u0433\u0430\u043c\u0438<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"python\">def fetch_coupons(ticker):    while True:        url = f'{ISS_BASE}\/statistics\/engines\/stock\/markets\/bonds\/bondization\/{ticker}.json'        try:            r = requests.get(url, params=params, timeout=15)            r.raise_for_status()            data = r.json()            # some more code        except Exception as e:            print(f' \u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043a\u0443\u043f\u043e\u043d\u043e\u0432 {ticker} (start={start_coupons}): {e}')            break        while True:        url = f'{ISS_BASE}\/statistics\/engines\/stock\/markets\/bonds\/bondization\/{ticker}.json'        try:            r = requests.get(url, params=params, timeout=15)            r.raise_for_status()            data = r.json()            # some more code        except Exception as e:            print(f' \u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0430\u043c\u043e\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0439 {ticker} (start={start_amort}): {e}')            break        return sorted_coupons, sorted_amortswith app.app_context():    bonds = Security.query.filter_by(is_active=True, type='bond').all()    for i, sec in enumerate(bonds, 1):        rows, amort = fetch_coupons(sec.ticker)                for c in rows:            try:                db.session.execute(\u201cINSERT \u2026. ON DUPLICATE KEY UPDATE\u201d)            except Exception as e:                print(f'  \u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0438\u0441\u0438 \u043a\u0443\u043f\u043e\u043d\u0430 {sec.ticker}: {e}')                continue        for a in amort:            try:                db.session.execute(\u201cINSERT \u2026. ON DUPLICATE KEY UPDATE\u201d)            except Exception as e:                print(f'  \u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0438\u0441\u0438 \u0430\u043c\u043e\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0439 {sec.ticker}: {e}')                continue                                       try:        db.session.commit()    except Exception as e:        db.session.rollback()        print(f'  \u041e\u0448\u0438\u0431\u043a\u0430 commit {sec.ticker}: {e}')<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u041a \u0447\u0435\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u0438 \u0432 \u0438\u0442\u043e\u0433\u0435<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"python\">def fetch_coupons(session, ticker):    while True:        url = f'{ISS_BASE}\/statistics\/engines\/stock\/markets\/bonds\/bondization\/{ticker}.json'            try:            r = session.get(url, params=params, timeout=15)            r.raise_for_status()            data = r.json()            # some more code        except Exception as e:            print(f' \u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043a\u0443\u043f\u043e\u043d\u043e\u0432 {ticker} (start={start_coupons}): {e}')            break        while True:        url = f'{ISS_BASE}\/statistics\/engines\/stock\/markets\/bonds\/bondization\/{ticker}.json'        try:            r = session.get(url, params=params, timeout=15)            r.raise_for_status()            data = r.json()            # some more code        except Exception as e:            print(f' \u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0430\u043c\u043e\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0439 {ticker} (start={start_amort}): {e}')            break     return sorted_coupons, sorted_amorts       with app.app_context():    with requests.Session() as session:        bonds = Security.query.filter_by(is_active=True, type='bond').all()                      for i, sec in enumerate(bonds, 1):            rows, amort = fetch_coupons(session, sec.ticker)                    for a in amort:                bulk_amortizations.append({})            for c in rows:                bulk_coupons.append({})           if bulk_amortizations:            try:                db.session.execute(                    db.text(),                    bulk_amortizations                )                db.session.commit()            except Exception as e:                db.session.rollback()                print(f'  \u041e\u0448\u0438\u0431\u043a\u0430 \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0430\u043c\u043e\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0439: {e}')                            if bulk_coupons:            try:                db.session.execute(                    db.text(),                    bulk_coupons                )                db.session.commit()            except Exception as e:                db.session.rollback()                print(f'  \u041e\u0448\u0438\u0431\u043a\u0430 \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0430\u043c\u043e\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0439: {e}')                             db.session.remove()<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/div>\n<\/details>\n<p><a class=\"anchor\" name=\"result\" id=\"result\"><\/a><\/p>\n<p>\u0427\u0435\u043c\u0443 \u044f \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f \u0437\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435:<\/p>\n<ul>\n<li>\n<p>\u0434\u043e\u0432\u0435\u0440\u044f\u0439 \u0418\u0418, \u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439. \u0422\u0443\u0442 \u043a\u0430\u043a \u0440\u0430\u0437 \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b \u0441\u0442\u0430\u0442\u044c\u0438 (\u0437\u0434\u0435\u0441\u044c \u0436\u0435, \u043d\u0430 Habr), \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u0432\u0430\u0439\u0431\u043a\u043e\u0434\u0438\u0442\u044c \u0435\u0441\u043b\u0438 \u0442\u044b \u043d\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0448\u044c\u0441\u044f \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u0432\u0441\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u044b, \u0432\u0435\u0440\u043d\u0435\u0435 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430. \u0422\u043e\u0442 \u0436\u0435 SQLAlchemy \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u043c\u043d\u0435 \u043f\u043e\u043a\u0430 \u043e\u0447\u0435\u043d\u044c \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f, \u0442\u0430\u043c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u0438\u0445 \u0437\u0430\u0442\u044b\u043a\u043e\u0432;    <\/p>\n<\/li>\n<li>\n<p>\u0438\u0437\u0443\u0447\u0438\u043b \u0440\u044f\u0434 \u043d\u043e\u0432\u044b\u0445 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439, \u043a\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0432 python;    <\/p>\n<\/li>\n<li>\n<p>\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430\u043c\u0438. \u041d\u0435 \u0433\u043e\u0432\u043e\u0440\u044e, \u0447\u0442\u043e \u0438\u0437\u0443\u0447\u0438\u043b, \u0432\u0435\u0434\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0447\u0430\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0443 \u0438 \u043f\u043e\u043d\u044f\u043b \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043d\u044e\u0430\u043d\u0441\u043e\u0432, \u0432\u0440\u043e\u0434\u0435 handshake \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u043c\u043e\u0433\u0443 \u043b\u0438 \u044f \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0431\u044d\u043a\u0435\u043d\u0434 \u0431\u0435\u0437 \u0418\u0418 \u0442\u0435\u043f\u0435\u0440\u044c. \u0412\u043f\u043e\u043b\u043d\u0435, \u043d\u043e \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b. \u0417\u0434\u0435\u0441\u044c \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e \u0434\u0432\u0430 cron \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043c\u043e\u0435\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u043a \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044e. \u041a\u0440\u043e\u043c\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0443 \u043c\u0435\u043d\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (Flask-Caching), \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f JWT (Flask-JWT-Extended), \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c Flask, ORM (SQLAlchemy), alembic \u0434\u043b\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439.    <\/p>\n<p><a class=\"anchor\" name=\"conclusion\" id=\"conclusion\"><\/a><\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u044b\u0432\u043e\u0434\u0430 \u0441\u043a\u0430\u0436\u0443, \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043c\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0438\u043c\u0435\u0435\u0442 \u043c\u0435\u0441\u0442\u043e \u0431\u044b\u0442\u044c, \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0430\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u044d\u043c\u043e\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u044f, \u0442.\u0435., \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432 python, \u044f \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438 \u0443\u0447\u0443\u0441\u044c \u043d\u0430 \u043d\u0451\u043c, \u0447\u0442\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0440\u0430\u0434\u043e\u0432\u0430\u0442\u044c. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0435\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430, \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u00ab\u0434\u0435\u0448\u0435\u0432\u044b\u0439 \u0434\u043e\u0444\u0430\u043c\u0438\u043d\u00bb \u043a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0435\u0442\u044f\u043c\u0438. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0441\u0442\u0440\u0430\u0434\u0430\u0442\u044c \u0433\u043b\u0443\u0431\u0438\u043d\u0430 \u0437\u043d\u0430\u043d\u0438\u0439, \u0430 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e &#8212; \u0438 \u0441\u0430\u043c\u0430 \u043c\u043e\u0442\u0438\u0432\u0430\u0446\u0438\u044f, \u044d\u0442\u043e \u043d\u0430\u0434\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1035800\/\">https:\/\/habr.com\/ru\/articles\/1035800\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u042d\u0442\u0430 \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e \u0442\u043e, \u043a\u0430\u043a \u044f \u043f\u0438\u043b\u044e \u0431\u044d\u043a\u0435\u043d\u0434, \u0443\u0447\u0443\u0441\u044c \u043d\u0430 \u044d\u0442\u043e\u043c \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u044d\u043c\u043e\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u0430\u0447\u0435\u043b\u0438.\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u041c\u0438\u043d\u0438 \u0444\u043b\u044d\u0448\u0431\u044d\u043aAI \u0432 \u0434\u0435\u043b\u0435\u041f\u043e\u0437\u043d\u0430\u043d\u0438\u0435\u041e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u0431\u043e\u0435\u043c\u0427\u0442\u043e \u044f \u043f\u043e\u043d\u044f\u043b\u0412\u044b\u0432\u043e\u0434\u044b\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043d\u0430\u043f\u043e\u043c\u043d\u044e \u043e \u0441\u0435\u0431\u0435: \u00ab\u0443 \u043c\u0435\u043d\u044f \u0441\u0432\u043e\u0439 \u0431\u0438\u0437\u043d\u0435\u0441, \u0430 \u0432 IT, \u044f \u0442\u0430\u043a, \u0434\u043b\u044f \u0434\u0443\u0448\u0438\u00bb. \u0428\u0443\u0442\u043a\u0430. \u0412\u00a0\u043e\u0431\u0449\u0435\u043c, \u043f\u043e\u0441\u043b\u0435 12 \u043b\u0435\u0442 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u0432 \u0441\u0444\u0435\u0440\u0435 \u044f \u0440\u0435\u0448\u0438\u043b \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u0431\u0430\u0437\u043e\u0432\u043e\u043c\u0443 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u2013 \u0438\u043d\u0436\u0435\u043d\u0435\u0440-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442. \u0427\u0442\u043e-\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u00ab\u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u0441 \u043d\u0443\u043b\u044f\u00bb, \u043d\u043e \u044f \u043d\u0435 \u043b\u044e\u0431\u043b\u044e \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441 \u0442\u0435\u043e\u0440\u0438\u0438, \u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u0442\u043e\u0440. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0442\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0434\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438, \u043e\u0442\u0442\u0430\u0447\u0438\u0432\u0430\u044f \u0441\u0432\u043e\u0438 \u0437\u043d\u0430\u043d\u0438\u044f, \u043d\u043e \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u0438\u0445 \u043d\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c. \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u043e, \u043d\u043e \u0442\u044b \u043d\u0435 \u0443\u0437\u043d\u0430\u0435\u0448\u044c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0433\u043e\u0440\u044f\u0447\u043e \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u0442\u0440\u043e\u0433\u0430\u0435\u0448\u044c. \u0415\u0441\u0442\u044c \u0435\u0449\u0435, \u0432-\u0442\u0440\u0435\u0442\u044c\u0438\u0445, \u0442\u0435\u043f\u0435\u0440\u044c \u0435\u0441\u0442\u044c \u0418\u0418 \u2013 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u044d\u043d\u0446\u0438\u043a\u043b\u043e\u043f\u0435\u0434\u0438\u044f \u0438 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a \u0432 \u043e\u0434\u043d\u043e\u043c \u043b\u0438\u0446\u0435 (\u0445\u043e\u0442\u044f \u0442\u0443\u0442 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0438\u0445 \u041d\u041e).\u041a\u0430\u043a \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u0440\u0430\u043d\u044c\u0448\u0435, \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0443\u0447\u0435\u0431\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438 \u043d\u0430 \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u0439 \u0431\u0438\u0440\u0436\u0435. \u0412\u044b\u0431\u0440\u0430\u043b \u0441\u0442\u0435\u043a, \u0434\u0430\u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u043b \u043a\u043e\u0435-\u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.\u0412\u0430\u0436\u043d\u043e\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435: \u0443 \u043c\u0435\u043d\u044f \u0441\u0430\u043c\u044b\u0439 \u0434\u0435\u0448\u0435\u0432\u044b\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433, \u043d\u0435 VPS. \u041f\u043e\u0447\u0435\u043c\u0443? \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u00ab\u0443\u0436\u0435 \u0431\u044b\u043b\u00bb, \u043f\u043e\u0434 \u043c\u0435\u043b\u043a\u0438\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b    \u0422\u0430\u043a \u0432\u043e\u0442. \u0421\u043f\u0443\u0441\u0442\u044f \u043f\u043e\u0447\u0442\u0438 2 \u043d\u0435\u0434\u0435\u043b\u0438, \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u0438\u0437\u0443\u0447\u0430\u044f \u0447\u0442\u043e \u0438 \u0437\u0430\u0447\u0435\u043c, \u044f \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b \u0431\u044d\u043a\u0435\u043d\u0434. \u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f \u0437\u043d\u0430\u044e, \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0442\u044c \u043e\u043f\u044b\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0418\u0418, \u043d\u043e \u044f \u0432\u0430\u0441 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e, \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442: \u00ab\u044f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0441\u044f \u0441 IT, \u043f\u043e \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u044f \u043f\u0440\u0435\u043f\u043e\u0434\u0430\u0432\u0430\u0442\u0435\u043b\u044c \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u044b, \u043d\u043e \u0440\u0435\u0448\u0438\u043b \u0432\u0441\u0451 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c, \u0438 \u0437\u0430 \u043e\u0434\u0438\u043d \u0432\u0435\u0447\u0435\u0440 \u0441 \u0418\u0418 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0443\u043f\u0435\u0440-\u043f\u0443\u043f\u0435\u0440 \u043c\u0435\u0433\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u00bb. \u041a\u0430\u043a, \u041a\u0430\u0440\u043b?    \u0412\u044b \u0432\u0438\u0434\u0435\u043b\u0438, \u0447\u0442\u043e \u043e\u043d \u0432\u044b\u0434\u0430\u0451\u0442? \u041e, \u044d\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u0439 \u043a\u043e\u0434, \u043d\u043e \u044d\u0442\u043e \u00ab\u0431\u043e\u043c\u0431\u0430 \u0437\u0430\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u00bb. \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043c\u0435\u043d\u044f \u043d\u0430\u043f\u0440\u044f\u0433\u043b\u0430 \u043a\u0443\u0447\u0430 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043d\u0430 \u0432\u0441\u0451. \u041b\u0430\u0434\u043d\u043e, \u043c\u043e\u0436\u0435\u0442 \u044d\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0442\u0430\u043a \u0438 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f. \u041f\u043e\u0442\u043e\u043c, \u0432\u044b\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u0435\u043d\u0434\u043f\u043e\u0438\u0442\u043d\u043e\u0432 ISS MOEX), \u0438\u043b\u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u0437\u0430\u0432\u0435\u0440\u0435\u043d\u0438\u044f, \u0447\u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0434\u043e. \u0421\u0430\u043c\u043e\u0435 \u043f\u0440\u0438\u043a\u043e\u043b\u044c\u043d\u043e\u0435 \u2013 \u044d\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u0418\u0418 \u0432\u044b\u0434\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u043b\u0438\u0441\u0442\u0438\u043d\u0433 \u0444\u0430\u0439\u043b\u0430, \u0430 \u043f\u043e\u0442\u043e\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435, \u0442\u0438\u043f\u0430 \u00ab\u044f \u0442\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0439\/\u043d\u0435\u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439\/\u0435\u0449\u0435 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u043e\u0434\u0445\u043e\u0434, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435, \u0447\u0442\u043e\u0431 \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u043a\u0430\u043a \u0447\u0430\u0441\u044b \u2013 \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e-\u0442\u043e \u0438 \u0442\u043e-\u0442\u043e\u00bb. \u0411\u043b\u0438\u043d, \u0430 \u043a\u043e\u0433\u0434\u0430 \u043b\u043e\u0432\u0438\u0448\u044c \u0435\u0433\u043e \u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0435\/\u043d\u0435\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u00ab\u0434\u0430, \u0432\u044b \u043f\u0440\u0430\u0432\u044b. \u0421\u0435\u0439\u0447\u0430\u0441 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044e. \u0418, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043a\u0440\u0438\u0432\u043e\u0439 \u043a\u043e\u0434 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043a \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u00bb.     \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u043b\u044b\u0422\u044b \u043f\u0440\u0430\u0432 \u043f\u043e \u043e\u0431\u043e\u0438\u043c \u043f\u0443\u043d\u043a\u0442\u0430\u043c.\u041f\u043e \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u2014 current_price * quantity \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0432\u0435\u0440\u043d\u043e. \u0420\u044b\u043d\u043e\u0447\u043d\u0430\u044f \u0446\u0435\u043d\u0430 \u043e\u0431\u043b\u0438\u0433\u0430\u0446\u0438\u0438 \u0443\u0436\u0435 \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0430\u043c\u043e\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u2014 ISS \u0435\u0451 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043d\u043e\u043c\u0438\u043d\u0430\u043b\u0430. \u041d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c.\u041f\u043e \u0432\u0442\u043e\u0440\u043e\u043c\u0443 \u2014 \u0434\u0430, \u043f\u043e\u043b\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0431\u0435\u0441\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u0435\u043d. \u041c\u044b \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0431\u0435\u0440\u0451\u043c \u0446\u0435\u043d\u0443 \u0438\u0437 ISS, \u0442\u0430\u043a \u0447\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u043e\u043c\u0438\u043d\u0430\u043b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0438 \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u2014 \u043b\u0438\u0448\u043d\u044f\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0438 \u043d\u0430 \u0447\u0442\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442.\u0418 \u044d\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043e\u043d \u043c\u043d\u0435 \u044d\u0442\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u043b \u0432 \u043a\u043e\u0434, \u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 &#171;\u043a\u0440\u0438\u0432\u044b\u043c\u0438&#187; \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u043d\u0430\u0448\u0435\u043b \u043f\u043e\u0447\u0435\u043c\u0443 \u0438&#8230; \u0434\u0430, \u044f \u043f\u0440\u0430\u0432.ISS \u0445\u0440\u0430\u043d\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e 2 \u0434\u043d\u044f \u0432\u043d\u0443\u0442\u0440\u0438\u0434\u043d\u0435\u0432\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u2014 \u0437\u043d\u0430\u0447\u0438\u0442 \u0442\u0430\u0439\u043c\u0444\u0440\u0435\u0439\u043c\u044b 1\u043c \u0438 5\u043c \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0439 \u0434\u0435\u043d\u044c.\u042d\u0442\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u0442\u0430\u043a, ISS \u043e\u0442\u0434\u0430\u0451\u0442 \u0441\u0432\u0435\u0447\u0438, \u0447\u0443\u0442\u044c \u043b\u0438 \u043d\u0435 c 2008-10 \u0433\u043e\u0434\u043e\u0432 \u043f\u043e 7 \u0440\u0430\u0437\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u043c, \u043d\u043e \u0442\u0430\u043c \u043d\u0435\u0442 5 \u043c\u0438\u043d\u0443\u0442. \u042f \u0434\u043e\u043b\u0433\u043e \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u043e\u043d\u044f\u0442\u044c \u043f\u043e\u0447\u0435\u043c\u0443 \u044f \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u043f\u0443\u0441\u0442\u043e\u0439 \u043c\u0430\u0441\u0441\u0438\u0432.\u0418\u043c\u0435\u043d\u043d\u043e, \u0442\u044b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043c\u044b\u0441\u043b\u0438\u0448\u044c. \u0420\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 MySQL \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0430\u0437 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443 \u2014 WebSocket \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0434\u0430\u0451\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430. \u0421\u043c\u044b\u0441\u043b\u0430 \u0432 \u043d\u0451\u043c \u043d\u043e\u043b\u044c.    \u0410 \u0442\u0443\u0442 \u043e\u043d \u043c\u043d\u0435 \u043d\u0430 shared-\u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0435 (\u0434\u0430 \u043e\u043d \u0437\u043d\u0430\u0435\u0442 \u043c\u043e\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f) \u0441\u043e\u0432\u0435\u0442\u0443\u0435\u0442 \u043c\u043d\u0435 \u0437\u0430\u043c\u043e\u0440\u043e\u0447\u0438\u0442\u044c\u0441\u044f \u0441 WebSocket (\u044d\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e?) \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0430\u0437 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443, \u0430 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435, \u0435\u0441\u043b\u0438 \u0447\u0430\u0449\u0435 \u043c\u0438\u043d\u0443\u0442\u044b \u0432\u043e\u043e\u0431\u0449\u0435 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0438\u0437 \u043a\u044d\u0448\u0430 (\u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435 TanStack Query, \u043f\u0440\u0438 \u0447\u0435\u043c \u0441\u0430\u043c \u0418\u0418 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b).     \u0424\u0443\u0443\u0445, \u0432\u0441\u0451. \u0412 \u0437\u0430\u0449\u0438\u0442\u0443 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u0434\u043b\u044f \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f, \u0432 \u0447\u0451\u043c-\u0442\u043e \u044d\u0442\u043e \u0434\u0430\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e. \u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435. \u042f \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u041d\u0430\u0434\u043e \u0440\u0430\u0437 \u0432 \u0441\u0443\u0442\u043a\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043a ISS, \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u0443\u043c\u0430\u0433 \u0438 \u0437\u0430\u043b\u0438\u0432\u0430\u0442\u044c \u0438\u0445 \u0432 MySQL \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u0431\u043b\u0438\u0446. \u0417\u0430\u0442\u0435\u043c, \u0435\u0436\u0435\u043c\u0438\u043d\u0443\u0442\u043d\u043e \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0441 ISS \u043a\u043e\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u0438 \u0442\u043e\u0436\u0435 \u0437\u0430\u043b\u0438\u0432\u0430\u0442\u044c \u0432 MySQL. \u0422\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0434\u043e\u043b\u0431\u0438\u0442\u044c ISS \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u043e\u0442 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u042f \u043b\u0443\u0447\u0448\u0435 \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0437\u0430\u0431\u0435\u0440\u0443 \u043a \u0441\u0435\u0431\u0435, \u0430 \u043f\u043e\u0442\u043e\u043c \u0440\u0430\u0437\u0434\u0430\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438\u0437 \u043a\u044d\u0448\u0430. \u041d\u043e \u044f \u043d\u0435 \u0437\u043d\u0430\u044e \u0432\u0441\u0435\u0445 \u043f\u0440\u0435\u043b\u0435\u0441\u0442\u0435\u0439 python (\u043c\u043e\u0439 \u0441\u0442\u0435\u043a \u0431\u044b\u043b Delphi+ADO+MS SQL. \u0414\u0430, \u044f \u0431\u0430\u043b\u043e\u0432\u0430\u043b\u0441\u044f \u0438 PHP, \u0438 Python, \u0434\u0430\u0436\u0435 Perl \u0447\u0443\u0442\u043e\u043a, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0432 \u0441\u0447\u0451\u0442). \u042f \u043f\u0440\u043e\u0448\u0443 \u0418\u0418 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u0438 \u0438\u0437\u0443\u0447\u0430\u044e \u0435\u0433\u043e. \u0412\u0441\u0451 \u0437\u0434\u043e\u0440\u043e\u0432\u043e, \u0432\u0441\u0451 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u042f \u0440\u0430\u0434, \u043d\u043e \u043d\u0435 \u0434\u043e\u043b\u0433\u043e. \u041d\u0430\u0447\u0438\u043d\u0430\u044e \u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0443\u0447\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b (\u043f\u043e\u043a\u0430 \u043d\u0435 \u0432 \u0442\u0435\u043c\u0435 QA Automation). \u0412\u043e\u0442 \u0442\u0443\u0442 \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435: \u044f \u0432\u0438\u0436\u0443, \u0447\u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435 \u0442\u0430\u043a \u043a\u0430\u043a \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043e, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0441 \u044d\u0442\u0438\u043c (\u0431\u044b\u043b\u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u0435\u043d\u0434\u043f\u043e\u0438\u0442\u043d\u044b, \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u043b \u043f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u044e, \u0443\u0432\u0435\u0440\u044f\u044f \u0447\u0442\u043e \u0435\u0451 \u043d\u0435\u0442, \u0431\u0440\u0430\u043b \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0442\u0435 \u043f\u043e\u043b\u044f, \u0431\u0440\u0430\u043b \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0435\u0439 \u043d\u0435 \u0438\u0437 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435). \u041d\u0430\u0447\u0438\u043d\u0430\u044e \u0444\u0438\u043a\u0441\u0438\u0442\u044c \u0441\u0430\u043c, \u043f\u043e\u0442\u043e\u043c \u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0418\u0418. \u0421\u043d\u043e\u0432\u0430 \u0442\u0435\u0441\u0442\u044b. \u0421\u043d\u043e\u0432\u0430 \u0441\u0430\u043c, \u0441\u043d\u043e\u0432\u0430 \u0418\u0418. \u0418 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u043f\u043e\u0431\u0435\u0434\u0430! \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u043e. \u0412\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0432\u0441\u0451 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0431\u0435\u0440\u0451\u0442, \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442. \u0414\u0435\u043f\u043b\u043e\u0439.    \u0421 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u0437\u0433\u043b\u044f\u0434\u0430 \u0432\u0441\u0451 \u043e\u0442\u043b\u0438\u0447\u043d\u043e, \u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e \u0445\u043e\u0441\u0442\u0438\u043d\u0433? \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u00ab\u043e\u0442\u0436\u0438\u0440\u0430\u044e\u0442\u00bb 13% CPU, \u0432\u043c\u0435\u0441\u0442\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d\u043d\u044b\u0445 CPU. \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f. \u0422\u0443\u0442, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u044f \u0440\u0430\u0437\u0432\u0451\u043b \u0440\u0443\u043a\u0430\u043c\u0438. \u041e\u0442\u0434\u0430\u043b\u0441\u044f \u0418\u0418. \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043c\u0430\u043b\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043e\u043d\u0438 \u0434\u043e\u043b\u0431\u044f\u0442 ISS \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 SSL \u0446\u0435\u0440\u0435\u043c\u043e\u043d\u0438\u044f\u043c\u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0431\u0443\u043c\u0430\u0433\u0443, \u0442\u0430\u043a \u0435\u0449\u0435 \u0438 MySQL \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0434\u0435\u0440\u0433\u0430\u044e\u0442, \u0442.\u0435. \u0434\u043b\u044f 100 \u0431\u0443\u043c\u0430\u0433 \u2013 \u044d\u0442\u043e 100 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439, \u0438 200-300 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0439 \u043a \u0431\u0430\u0437\u0435 \u0447\u0435\u0440\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0441\u043b\u043e\u0439\u043a\u0443 (SQLAlchemy). \u042d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e 1 \u0441\u043a\u0440\u0438\u043f\u0442, \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0432\u0441\u0451 \u0435\u0449\u0435 \u0445\u0443\u0436\u0435: \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0431\u0443\u043c\u0430\u0433\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a ISS (\u0438\u0437-\u0437\u0430 \u043f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u0438 \u043e\u0442\u0432\u0435\u0442\u043e\u0432), \u0438 \u043a\u0440\u0430\u0442\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 MySQL. \u041d\u0435 \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0437\u0430\u043d\u0438\u043c\u0430\u043b \u0434\u043e 50-60% \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.\u041f\u043e\u0447\u0438\u043d\u0438\u043b\u0438. \u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u0435\u0441\u0441\u0438\u044e \u043a ISS \u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0448\u043b\u0451\u043c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u0442\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u0438 \u043d\u0430 native SQL \u0434\u0435\u043b\u0430\u0435\u043c bulk insert. \u0414\u043b\u044f \u043c\u0435\u043d\u044f \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u0432\u0441\u0451 \u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u0438 \u0432\u0440\u0435\u043c\u044f CPU \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0434\u043e 2-4%, \u0442.\u0435. \u0438\u043c\u0435\u0435\u043c \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.\u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043b\u044e\u0431\u0438\u0442 \u043f\u0438\u043d\u0430\u0442\u044c \u043d\u043e\u0433\u0430\u043c\u0438\u041f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434def fetch_coupons(ticker):    while True:        url = f'{ISS_BASE}\/statistics\/engines\/stock\/markets\/bonds\/bondization\/{ticker}.json&#8217;        try:            r = requests.get(url, params=params, timeout=15)            r.raise_for_status()            data = r.json()            # some more code        except Exception as e:            print(f&#8217; \u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043a\u0443\u043f\u043e\u043d\u043e\u0432 {ticker} (start={start_coupons}): {e}&#8217;)            break        while True:        url = f'{ISS_BASE}\/statistics\/engines\/stock\/markets\/bonds\/bondization\/{ticker}.json&#8217;        try:            r = requests.get(url, params=params, timeout=15)            r.raise_for_status()            data = r.json()            # some more code        except Exception as e:            print(f&#8217; \u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0430\u043c\u043e\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0439 {ticker} (start={start_amort}): {e}&#8217;)            break        return sorted_coupons, sorted_amortswith app.app_context():    bonds = Security.query.filter_by(is_active=True, type=&#8217;bond&#8217;).all()    for i, sec in enumerate(bonds, 1):        rows, amort = fetch_coupons(sec.ticker)                for c in rows:            try:                db.session.execute(\u201cINSERT \u2026. ON DUPLICATE KEY UPDATE\u201d)            except Exception as e:                print(f&#8217;  \u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0438\u0441\u0438 \u043a\u0443\u043f\u043e\u043d\u0430 {sec.ticker}: {e}&#8217;)                continue        for a in amort:            try:                db.session.execute(\u201cINSERT \u2026. ON DUPLICATE KEY UPDATE\u201d)            except Exception as e:                print(f&#8217;  \u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0438\u0441\u0438 \u0430\u043c\u043e\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0439 {sec.ticker}: {e}&#8217;)                continue                                       try:        db.session.commit()    except Exception as e:        db.session.rollback()        print(f&#8217;  \u041e\u0448\u0438\u0431\u043a\u0430 commit {sec.ticker}: {e}&#8217;)\u041a \u0447\u0435\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u0438 \u0432 \u0438\u0442\u043e\u0433\u0435def fetch_coupons(session, ticker):    while True:        url = f'{ISS_BASE}\/statistics\/engines\/stock\/markets\/bonds\/bondization\/{ticker}.json&#8217;            try:            r = session.get(url, params=params, timeout=15)            r.raise_for_status()            data = r.json()            # some more code        except Exception as e:            print(f&#8217; \u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043a\u0443\u043f\u043e\u043d\u043e\u0432 {ticker} (start={start_coupons}): {e}&#8217;)            break        while True:        url = f'{ISS_BASE}\/statistics\/engines\/stock\/markets\/bonds\/bondization\/{ticker}.json&#8217;        try:            r = session.get(url, params=params, timeout=15)            r.raise_for_status()            data = r.json()            # some more code        except Exception as e:            print(f&#8217; \u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0430\u043c\u043e\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0439 {ticker} (start={start_amort}): {e}&#8217;)            break     return sorted_coupons, sorted_amorts       with app.app_context():    with requests.Session() as session:        bonds = Security.query.filter_by(is_active=True, type=&#8217;bond&#8217;).all()                      for i, sec in enumerate(bonds, 1):            rows, amort = fetch_coupons(session, sec.ticker)                    for a in amort:                bulk_amortizations.append({})            for c in rows:                bulk_coupons.append({})           if bulk_amortizations:            try:                db.session.execute(                    db.text(),                    bulk_amortizations                )                db.session.commit()            except Exception as e:                db.session.rollback()                print(f&#8217;  \u041e\u0448\u0438\u0431\u043a\u0430 \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0430\u043c\u043e\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0439: {e}&#8217;)                            if bulk_coupons:            try:                db.session.execute(                    db.text(),                    bulk_coupons                )                db.session.commit()            except Exception as e:                db.session.rollback()                print(f&#8217;  \u041e\u0448\u0438\u0431\u043a\u0430 \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0430\u043c\u043e\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0439: {e}&#8217;)                             db.session.remove()\u0427\u0435\u043c\u0443 \u044f \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f \u0437\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435:\u0434\u043e\u0432\u0435\u0440\u044f\u0439 \u0418\u0418, \u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439. \u0422\u0443\u0442 \u043a\u0430\u043a \u0440\u0430\u0437 \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b \u0441\u0442\u0430\u0442\u044c\u0438 (\u0437\u0434\u0435\u0441\u044c \u0436\u0435, \u043d\u0430 Habr), \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u0432\u0430\u0439\u0431\u043a\u043e\u0434\u0438\u0442\u044c \u0435\u0441\u043b\u0438 \u0442\u044b \u043d\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0448\u044c\u0441\u044f \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438;\u043d\u0435 \u0432\u0441\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u044b, \u0432\u0435\u0440\u043d\u0435\u0435 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430. \u0422\u043e\u0442 \u0436\u0435 SQLAlchemy \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u043c\u043d\u0435 \u043f\u043e\u043a\u0430 \u043e\u0447\u0435\u043d\u044c \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f, \u0442\u0430\u043c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u0438\u0445 \u0437\u0430\u0442\u044b\u043a\u043e\u0432;    \u0438\u0437\u0443\u0447\u0438\u043b \u0440\u044f\u0434 \u043d\u043e\u0432\u044b\u0445 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439, \u043a\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0432 python;    \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430\u043c\u0438. \u041d\u0435 \u0433\u043e\u0432\u043e\u0440\u044e, \u0447\u0442\u043e \u0438\u0437\u0443\u0447\u0438\u043b, \u0432\u0435\u0434\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0447\u0430\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435;\u043d\u0443 \u0438 \u043f\u043e\u043d\u044f\u043b \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043d\u044e\u0430\u043d\u0441\u043e\u0432, \u0432\u0440\u043e\u0434\u0435 handshake \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438.\u0421\u043c\u043e\u0433\u0443 \u043b\u0438 \u044f \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0431\u044d\u043a\u0435\u043d\u0434 \u0431\u0435\u0437 \u0418\u0418 \u0442\u0435\u043f\u0435\u0440\u044c. \u0412\u043f\u043e\u043b\u043d\u0435, \u043d\u043e \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043d\u0435&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-479919","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/479919","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=479919"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/479919\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=479919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=479919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=479919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}