{"id":417501,"date":"2024-06-30T01:36:28","date_gmt":"2024-06-30T01:36:28","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=417501"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-06-30T01:36:28","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=417501","title":{"rendered":"<span>\u041a\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0432 Apache Ignite<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/b7\/vr\/yp\/b7vryp4vumjtdobadqcfsyan7dw.png\" data-src=\"https:\/\/habrastorage.org\/webt\/b7\/vr\/yp\/b7vryp4vumjtdobadqcfsyan7dw.png\"\/><\/p>\n<p>  \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043a\u0432\u0430\u0434\u0440\u0438\u043b\u043b\u0438\u043e\u043d? \u042d\u0442\u043e \u0435\u0434\u0438\u043d\u0438\u0446\u0430 \u0441 15-\u044e \u043d\u0443\u043b\u044f\u043c\u0438, \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u043c\u0443\u0440\u0430\u0432\u044c\u0435\u0432 \u043d\u0430 \u043f\u043b\u0430\u043d\u0435\u0442\u0435 \u0438\u043b\u0438 100 \u0441\u0432\u0435\u0442\u043e\u0432\u044b\u0445 \u043b\u0435\u0442 \u0432 \u043a\u0438\u043b\u043e\u043c\u0435\u0442\u0440\u0430\u0445. \u0410 \u0435\u0449\u0435 \u044d\u0442\u043e <b>\u043e\u0431\u044a\u0435\u043c \u0442\u043e\u0440\u0433\u043e\u0432 \u0432 \u0440\u0443\u0431\u043b\u044f\u0445 \u043d\u0430 \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u0439 \u0431\u0438\u0440\u0436\u0435 \u0437\u0430 2021 \u0433\u043e\u0434. <\/b><\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0441\u0442\u0438\u0447\u044c \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0439, \u043e\u0447\u0435\u043d\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0439 \u0438 \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u043e\u043b\u0435\u0435 50% \u0448\u0442\u0430\u0442\u0430 \u0411\u0438\u0440\u0436\u0438 \u2013 \u0430\u0439\u0442\u0438\u0448\u043d\u0438\u043a\u0438, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u0441 \u043f\u0435\u0440\u0435\u0434\u043e\u0432\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439, \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0448\u0438\u0445 \u0418\u0422-\u0441\u0438\u0441\u0442\u0435\u043c \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 99,99%, \u0430 \u0435\u0449\u0435 \u043c\u044b \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0440\u0430\u0437\u0433\u043e\u043d\u044f\u0435\u043c \u043d\u0430\u0448\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b. \u041e\u0431 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0442\u0430\u043a\u043e\u0433\u043e \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0413\u0440\u0438\u0433\u043e\u0440\u0438\u0439 \u0414\u043e\u043c\u043e\u0436\u0438\u0440\u043e\u0432, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Data Grid.<\/p>\n<p>  \u2013 \u0412 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0435\u0441\u0442\u044c \u043a\u0443\u0447\u0430 \u0441\u0438\u0441\u0442\u0435\u043c-\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0438 \u0441\u0438\u0441\u0442\u0435\u043c-\u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0435\u0439 \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439. \u042f \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e \u0441\u0435\u0440\u0432\u0438\u0441, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f\u043c \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u0430. \u0412\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u043e \u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u044d\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u043e, \u0430 \u043c\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438\u0445 \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0441\u0432\u044b\u0448\u0435 500 \u0442\u044b\u0441\u044f\u0447 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043d\u0430 \u043f\u0438\u043a\u0435.<\/p>\n<p>  \u041a\u0430\u043a\u0438\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438? \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445 In-memory, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0442\u043e\u0440\u043c\u043e\u0437\u0438\u0442\u044c \u043e \u0434\u0438\u0441\u043a, \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u2013 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c. \u0422\u0430\u043a\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f In-Memory Data Grid, \u0438 \u044f\u0440\u043a\u0438\u0439 \u0435\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u044c \u2014 Apache Ignite. \u041d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u043c\u0430\u043b\u043e \u2013 \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u043d\u0435\u0433\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0435\u0433\u043e \u00ab\u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c\u00bb. \u0418 \u0441\u0435\u0439\u0447\u0430\u0441 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a.<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h1>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/h1>\n<p>  <\/p>\n<ul>\n<li><a href=\"#1\">\u0417\u0430\u0434\u0430\u0447\u0430<\/a><\/li>\n<li><a href=\"#2\">\u0412\u044b\u0431\u043e\u0440 API<\/a><br \/> \n<ul>\n<li><a href=\"#3\">Put<\/a><\/li>\n<li><a href=\"#4\">Data Streamer<\/a><\/li>\n<li><a href=\"#5\">PutAll<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#6\">\u0412\u043b\u0438\u044f\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u043e\u0442\u043e\u043a\u0430, \u043a\u0435\u0448\u0430 \u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430<\/a><br \/> \n<ul>\n<li><a href=\"#7\">SQL<\/a><\/li>\n<li><a href=\"#8\">\u0417\u0430\u043f\u0438\u0441\u044c \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u0443\u0437\u043b\u0430<\/a><\/li>\n<li><a href=\"#9\">\u0420\u0430\u0437\u043c\u0435\u0440 POJO<\/a><\/li>\n<li><a href=\"#10\">\u0420\u0430\u0437\u043c\u0435\u0440 batch\u2019\u0430<\/a><\/li>\n<li><a href=\"#11\">\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0431\u044d\u043a\u0430\u043f\u043e\u0432<\/a><\/li>\n<li><a href=\"#12\">\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430<\/a><\/li>\n<li><a href=\"#13\">Binary Object<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#14\">\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043e\u0432\u0435\u0442\u044b<\/a><br \/> \n<ul>\n<li><a href=\"#15\">\u0420\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u0442\u0435 \u0437\u0430\u043f\u0438\u0441\u044c \u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445<\/a><\/li>\n<li><a href=\"#16\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 CacheEntryProcessor<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#17\">\u0418\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u043f\u0430\u043c\u044f\u0442\u043a\u0430<\/a><\/li>\n<\/ul>\n<p>  <a name=\"1\"><\/a><\/p>\n<h1>\u0417\u0430\u0434\u0430\u0447\u0430<\/h1>\n<p>  \u0411\u0443\u0434\u0435\u043c \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0432 key-value \u043a\u0435\u0448 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043f\u043e\u0442\u043e\u043a \u0437\u0430\u043f\u0438\u0441\u0435\u0439. \u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u0442\u0438\u043f\u0438\u0447\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0438 \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f, \u043e\u0434\u043d\u0430\u043a\u043e \u0435\u0441\u0442\u044c \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0442\u0440\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u044b\u0439 \u2014 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439. \u041d\u0435\u0432\u0430\u0436\u043d\u043e, \u043e\u0442\u043a\u0443\u0434\u0430 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u044e\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 (\u0443 \u043d\u0430\u0441 \u044d\u0442\u043e Apache Kafka), \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u043e\u0442\u043e\u043a \u2014 \u0442\u043e \u0435\u0441\u0442\u044c, \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043f\u0440\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0435. \u0411\u0443\u0434\u0435\u0442 \u043e\u0431\u0437\u043e\u0440 API, \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438, \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438 \u0432\u043b\u0438\u044f\u043d\u0438\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043e\u043f\u044b\u0442\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0433\u043e\u0434\u0430 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u0432 \u043f\u0440\u043e\u0434\u0435.<\/p>\n<p>  <a name=\"2\"><\/a><\/p>\n<h1>\u0412\u044b\u0431\u043e\u0440 API<\/h1>\n<p>  \u0424\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0437\u0430\u0434\u0430\u0447\u0443. \u041f\u0443\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0441 \u0440\u044f\u0434\u043e\u043c \u043f\u043e\u043b\u0435\u0439, \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0442\u0430\u043a\u0438\u043c: \u00abValue Object\u00bb \u0438\u043b\u0438 \u00abPOJO\u00bb.<\/p>\n<pre><code class=\"java\">public class Data {     private byte[] payload;     private int int1 = 0;     private int int2 = 0;     private int int3 = 0;     private int int4 = 0;     private int int5 = 0;     private int int6 = 0;     private int int7 = 0;     private int int8 = 0;     private int int9 = 0; ... } <\/code><\/pre>\n<p>  \u0422\u0438\u043f, \u0438\u043c\u0435\u043d\u0430 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0435\u0439 \u043d\u0435 \u0442\u0430\u043a \u0432\u0430\u0436\u043d\u044b. \u0412\u0430\u0436\u043d\u043e, \u0447\u0442\u043e \u043e\u043d\u0438 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430, \u0432 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u043e\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435, \u0430 \u043e\u0431\u044a\u0435\u043c \u0432 \u0431\u0430\u0439\u0442\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u0432\u0430\u0440\u044c\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0411\u0443\u0434\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441:<\/p>\n<pre><code class=\"java\">write(List&lt;Entry&lt;Integer, Data>> data, IgniteCache&lt;Integer, Data> cache); <\/code><\/pre>\n<p>  \u0438 \u0434\u043e\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u043a\u0435\u0448 \u0431\u0443\u0434\u0435\u0442 in-memory (\u043d\u0435 \u043f\u0435\u0440\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u044b\u0439), \u0430\u0442\u043e\u043c\u0430\u0440\u043d\u044b\u0439 (\u043d\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u043e\u043d\u043d\u044b\u0439) \u0438 <a href=\"https:\/\/ignite.apache.org\/docs\/latest\/data-modeling\/data-partitioning\">\u043f\u0430\u0440\u0442\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439<\/a>. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432\u0441\u0451 \u0431\u0443\u0434\u0435\u043c \u043d\u0430 <a href=\"https:\/\/www.gridgain.com\/tryfree#communityEdition\">GridGain<\/a> Community Edition 8.8.3 \u2013 \u044d\u0442\u043e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 Apache Ignite 2.8.3, <a href=\"https:\/\/www.gridgain.com\/products\/in-memory-computing-platform\">\u0437\u0430\u044f\u0432\u043b\u044f\u0435\u043c\u044b\u0439<\/a> \u043a\u0430\u043a production-ready. \u0412 \u0432\u0435\u0440\u0441\u0438\u0438 Community Edition \u0442\u0430\u043a\u0436\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439.<\/p>\n<p>  <a name=\"3\"><\/a><\/p>\n<h2>Put<\/h2>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0432 \u043b\u043e\u0431: \u0435\u0441\u0442\u044c \u0436\u0435 <code>IgniteCache.put(...)<\/code>! \u0417\u0430\u043f\u043e\u043b\u043d\u044f\u043b\u0438 \u0431\u044b \u043c\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, HashMap \u2014 \u0442\u0430\u043a \u0431\u044b \u0438 \u0434\u0435\u043b\u0430\u043b\u0438. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043a\u0435\u0448 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e:<\/p>\n<pre><code class=\"java\">ignite.createCache(\"benchmark\"); <\/code><\/pre>\n<p>  \u0438 \u043f\u0435\u0440\u0435\u043b\u043e\u0436\u0438\u043c \u0432 \u043d\u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0435:<\/p>\n<pre><code class=\"java\">data.forEach(entry -> cache.put(entry.getKey(), entry.getValue())); <\/code><\/pre>\n<p>  \u041a\u0430\u0436\u0434\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u043d\u0430\u043f\u043e\u043b\u043d\u0438\u043c 200 \u0431\u0430\u0439\u0442\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a \u043d\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 \u0438\u0437 5 \u043c\u0430\u0448\u0438\u043d (Intel\u00ae Xeon\u00ae E5-2640 v3 @ 2,60 \u0413\u0413\u0446 \u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439, \u0441\u0435\u0442\u044c 1000 \u041c\u0431\u0438\u0442\/\u0441\u0435\u043a.). \u0412\u044b\u0441\u043e\u043a\u043e\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0432\u044b\u0434\u0430\u0441\u0442\u2026 2555 \u0437\u0430\u043f\u0438\u0441\u0435\u0439\/\u0441\u0435\u043a. ?<\/p>\n<p>  \u042d\u0442\u043e \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0433\u043e\u0434\u0438\u0442\u0441\u044f, \u0447\u0442\u043e-\u0442\u043e \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0435 \u0442\u0430\u043a.<\/p>\n<p>  <a name=\"4\"><\/a><\/p>\n<h2>Data Streamer<\/h2>\n<p>  \u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0431\u044b\u043b\u043e \u044f\u0432\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u2014 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 put, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <a href=\"https:\/\/ignite.apache.org\/docs\/latest\/data-streaming\">IgniteDataStreamer<\/a>:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/109\/430\/45c\/10943045c4ae72932eca0eaa06ceb0b6.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/109\/430\/45c\/10943045c4ae72932eca0eaa06ceb0b6.png\"\/><\/div>\n<p>  \u0427\u0442\u043e \u0436\u0435, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c IgniteDataStreamer:<\/p>\n<pre><code class=\"java\">final IgniteDataStreamer&lt;Integer, Data> dataStreamer = ignite.dataStreamer(cache.getName()); <\/code><\/pre>\n<p>  \u0438 \u043f\u0438\u0448\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e \u0442\u0435 \u0436\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u044f, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e, \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 flush\u2019\u0438\u0442\u044c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u0436\u0434\u044b\u0435 1000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u0438\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0432 <code>IgniteDataStreamer#autoFlushFrequency(long autoFlushFreq)<\/code>:<\/p>\n<pre><code class=\"java\">data.forEach(entry -> {     dataStreamer.addData(entry.getKey(), entry.getValue());     if (...) {       dataStreamer.flush();     }   });<\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c 228 493 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443. \u0414\u0440\u0443\u0433\u043e\u0435 \u0434\u0435\u043b\u043e! \u0417\u0430\u0434\u0430\u0447\u0430 \u0440\u0435\u0448\u0435\u043d\u0430? \u0412 \u043e\u0431\u0449\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043d\u0435\u0442. \u0415\u0441\u043b\u0438 \u0432 \u043a\u0435\u0448\u0435 \u0443\u0436\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430, \u0442\u043e \u043d\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u044b <a href=\"https:\/\/ignite.apache.org\/docs\/latest\/data-streaming#overwriting-existing-keys\">\u043d\u0435 \u0431\u0443\u0434\u0443\u0442<\/a>.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/b6f\/c48\/f3e\/b6fc48f3e46cfb9cc5541923f76ccd6c.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b6f\/c48\/f3e\/b6fc48f3e46cfb9cc5541923f76ccd6c.png\"\/><\/div>\n<p>  \u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 <code>allowOverwrite(<\/code><strong><code>true<\/code><\/strong><code>)<\/code> \u043c\u0430\u043b\u043e \u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u0442.\u043a. \u0432 <a href=\"https:\/\/ignite.apache.org\/releases\/latest\/javadoc\/org\/apache\/ignite\/IgniteDataStreamer.html\">javadoc<\/a> \u043a IgniteDataStreamer \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0440\u0430\u0439\u043d\u0435 \u0432\u0430\u0436\u043d\u044b\u0439 \u043d\u044e\u0430\u043d\u0441, \u0443\u043c\u043e\u043b\u0447\u0435\u043d\u043d\u044b\u0439 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/932\/7a7\/0cf\/9327a70cfd9b632111436f07fa1e932f.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/932\/7a7\/0cf\/9327a70cfd9b632111436f07fa1e932f.png\"\/><\/div>\n<p>  \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u0441\u0432\u0435\u0436\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043a\u043b\u044e\u0447\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c!<\/p>\n<p>  \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0430\u0448 \u043a\u0435\u0448 \u0442\u0435\u0440\u043f\u0438\u043c\u044b\u043c \u043a \u043f\u043e\u0442\u0435\u0440\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0443\u0437\u043b\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0432 1 \u0431\u044d\u043a\u0430\u043f, \u0442\u043e \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u043e\u043a\u0440\u0430\u0442\u043d\u0443\u044e \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044e.<\/p>\n<pre><code class=\"java\">final CacheConfiguration&lt;Integer, Data> cacheConfiguration = new CacheConfiguration&lt;Integer, Data>(\"benchmark\") .setBackups(1) .setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC) .setAtomicityMode(CacheAtomicityMode.ATOMIC) .setCacheMode(CacheMode.PARTITIONED); ignite.createCache(cacheConfiguration);<\/code><\/pre>\n<p>  <code>CacheWriteSynchronizationMode.FULL_SYNC<\/code> \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442 Ignite \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u043e\u043a\u043e\u043d\u0447\u0435\u043d\u043d\u043e\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0443\u0437\u043b\u0430\u0445, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0440\u0435\u043f\u043b\u0438\u043a\u0438. \u0411\u0443\u0434\u044c\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b, \u0440\u0435\u0436\u0438\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u2014 <code>PRIMARY_SYNC. CacheAtomicityMode.ATOMIC<\/code> \u0438 <code>CacheMode.PARTITIONED<\/code> \u2014 \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. <\/p>\n<p>  \u0412 \u0442\u0430\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 (\u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0431\u044d\u043a\u0430\u043f\u043e\u0432 \u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 <code>allowOverwrite<\/code>) Data Streamer <a href=\"https:\/\/stackoverflow.com\/questions\/58644590\/ignitedatastreamer-with-allowoverwrite-is-slower-than-putall\">\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c<\/a> \u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 <code>put<\/code>. \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432 \u0442\u0430\u043a\u043e\u043c \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0430 \u043d\u0438\u0447\u0442\u043e\u0436\u043d\u044b\u0435 23 623 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443!<\/p>\n<p>  \u0422\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u043e\u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A4%D0%B8%D0%BB%D1%8C%D1%82%D1%80_%D0%91%D0%BB%D1%83%D0%BC%D0%B0\">\u0444\u0438\u043b\u044c\u0442\u0440 \u0411\u043b\u0443\u043c\u0430<\/a> \u0438 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 <code>flush()<\/code>, \u043d\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0430: \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 Data Streamer \u043f\u0440\u0438 \u043d\u0435\u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0430\u0445. \u0410 \u043f\u0440\u0438 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0430\u0445 \u2014 \u044d\u0442\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 API, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>  <a name=\"5\"><\/a><\/p>\n<h2>PutAll<\/h2>\n<p>  \u0422\u0440\u0435\u0442\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0437\u0430\u043f\u0438\u0441\u0438 \u2014 <code>IgniteCache.putAll()<\/code>. \u041a\u0430\u043a \u0438 \u0440\u0430\u043d\u044c\u0448\u0435, \u0434\u043b\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0431\u0443\u0434\u0435\u043c \u043d\u0430\u0440\u0435\u0437\u0430\u0442\u044c \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043f\u043e\u0442\u043e\u043a \u043d\u0430 \u043f\u0430\u0447\u043a\u0438 (batch-\u0438) \u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e. <\/p>\n<pre><code class=\"java\">data.forEach(entry -> {  final TreeMap&lt;Integer, Data> batch = batchHolder.get();  batch.put(entry.getKey(), entry.getValue());  if (...) {    cache.putAll(batch);    batchHolder.set(new TreeMap&lt;>());  } });<\/code><\/pre>\n<p>  \u0412\u043b\u0438\u044f\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043f\u0430\u0447\u043a\u0438 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0438\u0436\u0435. \u0410 \u043f\u043e\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0439 \u0442\u0435\u0441\u0442 \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u043c \u0441\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u043f\u0438\u0441\u0438 \u0447\u0435\u0440\u0435\u0437 Data Streamer \u043f\u0440\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0439. \u041f\u0440\u0438 \u043d\u0435\u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0430\u0445, \u043a\u0430\u043a \u043c\u044b \u043f\u043e\u043c\u043d\u0438\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Data Streamer \u043d\u0435\u043b\u044c\u0437\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f Data Streamer \u0432 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u044b \u0441\u0435\u0440\u044b\u043c \u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/mg\/f9\/vm\/mgf9vmojvumfzwroachysjtmthu.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/mg\/f9\/vm\/mgf9vmojvumfzwroachysjtmthu.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u043f\u0440\u0438 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0430\u0445 <code>putAll<\/code> \u0434\u0430\u0451\u0442 \u043c\u0435\u043d\u044c\u0448\u0443\u044e, \u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u043c\u0443\u044e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c. \u041f\u0440\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0438 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e \u043a\u043b\u044e\u0447\u0443 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u043c\u043e \u0440\u0435\u0437\u043a\u043e \u0440\u0430\u0441\u0442\u0451\u0442: \u0438\u0437 \u0432\u0441\u0435\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0441 \u043e\u0434\u043d\u0438\u043c \u043a\u043b\u044e\u0447\u043e\u043c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 batch\u2019\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430 \u2014 \u0441\u0430\u043c\u0430\u044f \u0441\u0432\u0435\u0436\u0430\u044f. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u00ab\u0441\u0445\u043b\u043e\u043f\u043d\u0443\u0442\u0441\u044f\u00bb \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 HashMap. \u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438 50 %-\u043d\u043e\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0438 \u043a\u043b\u044e\u0447\u0435\u0439 \u0432 Ignite \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u043e\u0442 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 POJO, \u0447\u0442\u043e \u0438 \u0434\u0430\u0451\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432\u0434\u0432\u043e\u0435 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u0443\u044e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438. \u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e, \u0443 \u043d\u0430\u0441 \u043e\u043d\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0438\u043c\u0435\u043d\u043d\u043e TreeMap. \u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 HashMap \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0446\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u0432 <a href=\"https:\/\/github.com\/apache\/ignite\/blob\/8793c7cfdd6d9c2879f31e489baec43cae1bfa51\/modules\/core\/src\/main\/java\/org\/apache\/ignite\/internal\/processors\/cache\/GridCacheAdapter.java#L5170\">\u043b\u043e\u0433\u0430\u0445<\/a>:<\/p>\n<pre><code class=\"java\">LT.warn(log, \"Unordered map \" + m.getClass().getName() +    \" is used for \" + op.title() + \" operation on cache \" + name() + \". \" +    \"This can lead to a distributed deadlock. Switch to a sorted map like TreeMap instead.\");<\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 <code>putAll<\/code> \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c deadlock, \u0430 \u0432 \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0435 \u0441\u0442\u0435\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0445 \u0443\u0437\u043b\u043e\u0432 \u2014 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432\u0435\u0440\u0435\u043d\u0438\u0446\u0443 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a. \u041d\u0435 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0439\u0442\u0435 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e <code>putAll<\/code> \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0447\u0442\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435.<\/p>\n<p>  \u0418\u0442\u043e\u0433 \u0442\u0430\u043a\u043e\u0432: \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 Data Streamer, \u0438\u043d\u0430\u0447\u0435 \u2014 <code>putAll<\/code>. \u0418\u043b\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 <code>putAll<\/code>, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \ud83d\ude09<\/p>\n<p>  <a name=\"6\"><\/a><\/p>\n<h1>\u0412\u043b\u0438\u044f\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u043e\u0442\u043e\u043a\u0430, \u043a\u0435\u0448\u0430 \u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430<\/h1>\n<p>  <a name=\"7\"><\/a><\/p>\n<h2>SQL<\/h2>\n<p>  Ignite \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c SQL \u043f\u043e\u0432\u0435\u0440\u0445 \u043a\u0435\u0448\u0430 \u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u043a \u043d\u0435\u043c\u0443 SQL-\u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u0430. \u041c\u044b, \u043a\u0441\u0442\u0430\u0442\u0438, \u044d\u0442\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f. \u0414\u0430\u0435\u0442 \u043b\u0438 \u044d\u0442\u043e \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c.<\/p>\n<p>  \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c SQL \u043c\u043e\u0436\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u0432 POJO \u0438\u043b\u0438 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043a\u0435\u0448\u0430 \u043f\u0440\u0438 \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438, c\u043f\u043e\u0441\u043e\u0431\u044b \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u044b. \u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0432\u0442\u043e\u0440\u043e\u0439 \u0438\u0437 \u043d\u0438\u0445, \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b POJO, \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u044f\u0449\u0438\u0435 \u043e\u0442 Ignite. \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c SQL:<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">final LinkedHashMap&lt;String, String> fields = new LinkedHashMap&lt;>(); fields.put(\"payload\", byte[].class.getName()); fields.put(\"int1\", Integer.class.getName()); fields.put(\"int2\", Integer.class.getName()); fields.put(\"int3\", Integer.class.getName()); fields.put(\"int4\", Integer.class.getName()); fields.put(\"int5\", Integer.class.getName()); fields.put(\"int6\", Integer.class.getName()); fields.put(\"int7\", Integer.class.getName()); fields.put(\"int8\", Integer.class.getName()); fields.put(\"int9\", Integer.class.getName()); cacheConfiguration.setQueryEntities(Collections.singleton(new QueryEntity()        .setValueType(Data.class.getName())        .setTableName(\"Data\")        .setFields(fields)));<\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  \u0417\u0430\u043c\u0435\u0440\u044f\u0435\u043c \u043f\u0440\u0438 \u0440\u0430\u0437\u043d\u043e\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u043c\u0435\u0442\u043e\u0434\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u044d\u043a\u0430\u043f\u043e\u0432, \u0440\u0430\u0437\u043c\u0435\u0440\u0435 batch\u2019\u0430, \u043e\u0431\u044a\u0451\u043c\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 Binary Object (\u043e\u0431\u0441\u0443\u0434\u0438\u043c \u043d\u0438\u0436\u0435):<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438<\/b>                         <\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/jx\/sf\/zz\/jxsfzzdr--2revvkdzsyzaarbfu.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/jx\/sf\/zz\/jxsfzzdr--2revvkdzsyzaarbfu.jpeg\" data-blurred=\"true\"\/>  <\/div>\n<\/p><\/div>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f: \u043e\u0442 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0443\u043b\u044f \u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u0434\u0432\u0443\u0445 \u0440\u0430\u0437. \u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0432\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435 SQL \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043e\u043d \u0432\u0430\u043c \u043d\u0443\u0436\u0435\u043d. \u0410 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c overhead \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043c\u0438\u0440\u0438\u0442\u044c\u0441\u044f.<\/p>\n<p>  <a name=\"8\"><\/a><\/p>\n<h2>\u0417\u0430\u043f\u0438\u0441\u044c \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u0443\u0437\u043b\u0430<\/h2>\n<p>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043e\u0440\u0438\u0438. \u0412\u0441\u0435 \u0443\u0437\u043b\u044b \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 Ignite \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0442\u0440\u0435\u0445 \u0442\u0438\u043f\u043e\u0432: \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439, \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 \u0438\u043b\u0438 \u0442\u043e\u043d\u043a\u0438\u0439 \u043a\u043b\u0438\u0435\u043d\u0442. \u0422\u043e\u043d\u043a\u0438\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u0434\u043e\u043b\u0433\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0438\u043c\u0435\u043b \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0439 API, \u0435\u0433\u043e \u044f \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443. \u041f\u043e\u043b\u0430\u0433\u0430\u044e, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u0431\u043b\u0438\u0437\u043a\u0430 \u043a \u00ab\u0442\u043e\u043b\u0441\u0442\u043e\u043c\u0443\u00bb \u043a\u043b\u0438\u0435\u043d\u0442\u0443. \u0422\u0438\u043f \u0443\u0437\u043b\u0430 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Ignite \u043f\u0440\u0438 \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0435:<\/p>\n<pre><code class=\"java\">Ignition.start(new IgniteConfiguration().setClientMode(true) ...) <\/code><\/pre>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e \u0443\u0437\u043b\u0430 \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435. \u0412\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0435\u0448\u0430 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0445 \u0443\u0437\u043b\u0430\u0445.<\/p>\n<p>  \u0418\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u0443\u0437\u043b\u0430: \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043b\u0438\u0448\u043d\u0438\u0439 \u0440\u0430\u0437 \u0433\u043e\u043d\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0441\u0435\u0442\u0438 \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440. \u0412\u0441\u0435 \u0432\u044b\u0448\u0435\u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e \u0443\u0437\u043b\u0430. \u0415\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u0443\u0437\u043b\u0430, \u0442\u043e \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 <a href=\"https:\/\/ignite.apache.org\/docs\/latest\/services\/services#cluster-singleton\">singleton service<\/a> \u0438 <a href=\"https:\/\/ignite.apache.org\/docs\/latest\/distributed-computing\/distributed-computing\">compute jobs<\/a>.<\/p>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u043e\u0432 \u043f\u0440\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u043a\u0435\u0448\u0430 \u0438 \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438<\/b>                         <\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/t8\/dk\/fq\/t8dkfqve6dvq5rjhk32yonm3qha.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/t8\/dk\/fq\/t8dkfqve6dvq5rjhk32yonm3qha.jpeg\" data-blurred=\"true\"\/>  <\/div>\n<\/p><\/div>\n<p>  \u0412\u0438\u0434\u0438\u043c \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 \u043d\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 \u0438\u0437 \u043f\u044f\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0445 \u0443\u0437\u043b\u043e\u0432 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043d\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 \u0438\u0437 \u0434\u0432\u0443\u0445.<\/p>\n<p>  <a name=\"9\"><\/a><\/p>\n<h2>\u0420\u0430\u0437\u043c\u0435\u0440 POJO<\/h2>\n<p>  \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0435\u0441\u0438\u0442 \u043a\u0430\u0436\u0434\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0431\u0430\u0439\u0442\u0430\u0445, \u0442\u0435\u043c \u0434\u043e\u043b\u044c\u0448\u0435 \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u0441\u0435\u0442\u0438, \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043f\u0438\u0441\u0438. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/a31\/5d1\/3f3\/a315d13f3e95cdb83b7f33d91e83120e.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/a31\/5d1\/3f3\/a315d13f3e95cdb83b7f33d91e83120e.png\"\/><\/div>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0422\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438<\/b>                         <\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/ma\/2q\/_c\/ma2q_c_5h2h9wursvg1sywe8ecg.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/ma\/2q\/_c\/ma2q_c_5h2h9wursvg1sywe8ecg.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/tn\/a1\/ne\/tna1neb1ggdcfyedspmpvapbas0.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/tn\/a1\/ne\/tna1neb1ggdcfyedspmpvapbas0.jpeg\" data-blurred=\"true\"\/>  <\/div>\n<\/p><\/div>\n<p>  \u041d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u043b\u0438\u043d\u0438\u0438 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439, \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e \u0432\u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0431\u044d\u043a\u0430\u043f\u0430 \u043f\u043e \u043c\u0435\u0440\u0435 \u0440\u043e\u0441\u0442\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e \u043f\u0430\u0434\u0430\u0435\u0442. \u041f\u0440\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430.<\/p>\n<p>  <a name=\"10\"><\/a><\/p>\n<h2>\u0420\u0430\u0437\u043c\u0435\u0440 batch\u2019\u0430<\/h2>\n<p>  \u041e\u0434\u0438\u043d \u0438\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u2014 \u0440\u0430\u0437\u043c\u0435\u0440 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u043e\u0439 \u043f\u0430\u0447\u043a\u0438 \u0432 \u0448\u0442\u0443\u043a\u0430\u0445. \u0414\u043b\u044f Data Streamer \u2014 \u044d\u0442\u043e \u0447\u0430\u0441\u0442\u043e\u0442\u0430 flush\u2019\u0430, \u0434\u043b\u044f <code>putAll<\/code> \u2014 \u0440\u0430\u0437\u043c\u0435\u0440 \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u0435\u043c\u043e\u0439 Map. \u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044f \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0430\u0447\u043a\u0438 \u043c\u044b \u0436\u0435\u0440\u0442\u0432\u0443\u0435\u043c \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0432 \u0443\u0433\u043e\u0434\u0443 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0438 \u044d\u0442\u043e \u0442\u043e\u0433\u043e \u0441\u0442\u043e\u0438\u0442:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/485\/2a4\/d80\/4852a4d80cb427d05a5c643fe66d460f.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/485\/2a4\/d80\/4852a4d80cb427d05a5c643fe66d460f.png\"\/><\/div>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0422\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438<\/b>                         <\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/2g\/kj\/ct\/2gkjctl-el_xxpgs909loipqpyo.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/2g\/kj\/ct\/2gkjctl-el_xxpgs909loipqpyo.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/2o\/gp\/4s\/2ogp4sewvp7lpeqglgomfmjhblm.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/2o\/gp\/4s\/2ogp4sewvp7lpeqglgomfmjhblm.jpeg\" data-blurred=\"true\"\/>  <\/div>\n<\/p><\/div>\n<p>  \u0422\u0443\u0442 \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u044a\u044f\u0441\u043d\u0438\u043c\u0430\u044f \u043f\u0440\u043e\u0441\u0430\u0434\u043a\u0430 \u043f\u0440\u0438 10 000, \u0430 \u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0442\u0451\u0442, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043f\u0430\u0447\u043a\u0438 \u0434\u043e 1 000.<\/p>\n<p>  <a name=\"11\"><\/a><\/p>\n<h2>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0431\u044d\u043a\u0430\u043f\u043e\u0432<\/h2>\n<p>  \u041e\u0434\u0438\u043d \u0438\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043a\u0435\u0448\u0430 \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0431\u044d\u043a\u0430\u043f\u043e\u0432, \u0442\u043e \u0435\u0441\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0443\u0437\u043b\u043e\u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0440\u0435\u043f\u043b\u0438\u043a\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445. \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0431\u044d\u043a\u0430\u043f\u043e\u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0445 \u0443\u0437\u043b\u043e\u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0435\u0433\u043e \u043f\u043e\u043a\u0438\u043d\u0443\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u00ab\u0443\u043f\u0430\u0441\u0442\u044c\u00bb. \u0415\u0441\u043b\u0438 \u0443\u0437\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043a\u0438\u0434\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0442\u043e \u0431\u044d\u043a\u0430\u043f\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u0435\u0440\u0435\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u043e \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u043c\u0441\u044f \u0443\u0437\u043b\u0430\u043c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e.<\/p>\n<p>  \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0431\u044d\u043a\u0430\u043f\u043e\u0432, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u0447\u0442\u043e \u0437\u0430\u043c\u0435\u0434\u043b\u0438\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u043a\u0435\u0448.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/d92\/e4e\/e80\/d92e4ee80da0590c3bc4f896caccdfe9.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/d92\/e4e\/e80\/d92e4ee80da0590c3bc4f896caccdfe9.png\"\/><\/div>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0422\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438<\/b>                         <\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/q5\/fy\/lm\/q5fylmszsectc7z86gcq38g0l7c.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/q5\/fy\/lm\/q5fylmszsectc7z86gcq38g0l7c.jpeg\" data-blurred=\"true\"\/>  <\/div>\n<\/p><\/div>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043b\u0438\u043d\u0435\u0439\u043d\u0443\u044e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u0434\u043b\u044f <code>putAll<\/code>. \u0414\u043b\u044f Data Streamer \u2014 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u0441 \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0435\u0439 \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u0431\u044d\u043a\u0430\u043f\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u044f \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u043d\u0435 \u043c\u043e\u0433\u0443.<\/p>\n<p>  <a name=\"12\"><\/a><\/p>\n<h2>\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430<\/h2>\n<p>  \u041f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c Ignite \u043d\u0430 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u043c \u0443\u0437\u043b\u0430\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0435\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c, \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/947\/cad\/c9d\/947cadc9df8fd3423bece0adb0a024ef.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/947\/cad\/c9d\/947cadc9df8fd3423bece0adb0a024ef.png\"\/><\/div>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438<\/b>                         <\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/f6\/o7\/xo\/f6o7xorsv8mdlab22brxdxvtqjs.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/f6\/o7\/xo\/f6o7xorsv8mdlab22brxdxvtqjs.jpeg\" data-blurred=\"true\"\/>  <\/div>\n<\/p><\/div>\n<p>  \u041f\u0440\u0438\u0437\u043d\u0430\u0435\u043c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0445\u043e\u0442\u044c \u0438 \u0441 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u043c. <\/p>\n<p>  <a name=\"13\"><\/a><\/p>\n<h2>Binary Object<\/h2>\n<p>  Ignite \u0445\u0440\u0430\u043d\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u0432\u043e\u0451\u043c \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435. \u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u0432 \u043a\u0435\u0448 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430, \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0432 \u043d\u0435\u0433\u043e \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e reflection. \u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u043f\u043e\u043c\u043e\u0447\u044c \u0432 \u044d\u0442\u043e\u043c Ignite\u2019\u0443? \u0414\u0430. \u0415\u0441\u0442\u044c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c <a href=\"https:\/\/ignite.apache.org\/docs\/latest\/key-value-api\/binary-objects\">Binary Object<\/a> \u2014 \u043e\u0431\u0451\u0440\u0442\u043a\u0438 \u043d\u0430\u0434 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c. \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"java\">final BinaryObjectBuilder builder = Ignite.binary().builder(Data.class.getName()); builder.setField(\"payload\", payload, byte[].class); ... builder.setField(\"int9\", int9, Integer.class); final BinaryObject binaryObj = builder.build();<\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 Binary Object \u0432 \u043a\u0435\u0448, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"java\">IgniteCache&lt;Integer, BinaryObject> binaryCache = ignite.cache(\"cacheName\").withKeepBinary(); <\/code><\/pre>\n<p>  \u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043c\u044b \u0432\u043c\u0435\u0441\u0442\u043e reflection \u0433\u043e\u0432\u043e\u0440\u0438\u043c Ignite, \u0447\u0442\u043e \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 (\u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c <code>String<\/code>), \u0438 \u0432 \u043d\u0451\u043c \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u044f \u0432\u043e\u0442 \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438 (\u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c <code>String<\/code>) \u0441 \u0432\u043e\u0442 \u0442\u0430\u043a\u0438\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 (\u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c <code>Object<\/code>). \u0414\u0440\u0443\u0433\u043e\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e Binary Object \u2014 \u0432\u0430\u043c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u0430\u0436\u0435 \u0438\u043c\u0435\u0442\u044c \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0432\u0430\u0448\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445! \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c <code>ResultSet<\/code> \u043a\u0430\u043a\u043e\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c SQL-\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0438 \u043f\u0435\u0440\u0435\u043b\u043e\u0436\u0438\u0442\u044c \u043f\u043e\u043b\u044f \u0438\u0437 \u043d\u0435\u0433\u043e \u0441\u0440\u0430\u0437\u0443 \u0432 Binary Object. \u041a\u0430\u043a\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u043d\u0435 \u0432\u0430\u0436\u043d\u043e. \u041e\u043d \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d \u0431\u044b\u0442\u044c \u0432 <code>classpath<\/code> \u043d\u0438 \u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043d\u0438 \u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u0443\u0437\u043b\u0430, \u043d\u0438 \u0434\u0430\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u0440\u0438 \u0447\u0442\u0435\u043d\u0438\u0438 \u0438\u0437 \u043a\u0435\u0448\u0430, \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u0447\u0438\u0442\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u0432\u0438\u0434\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430, \u0430 \u043d\u0435 \u0447\u0435\u0440\u0435\u0437 Binary Object \u0438\u043b\u0438 SQL. \u041e\u0442\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u043f\u0440\u0438\u0437\u043d\u0430\u043a <code>.withKeepBinary()<\/code><i> \u2014 <\/i>\u044d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u0435\u0448\u0430. \u0412 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043a\u0435\u0448 \u043c\u043e\u0436\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a \u0447\u0435\u0440\u0435\u0437 POJO, \u0442\u0430\u043a \u0438 \u0447\u0435\u0440\u0435\u0437 Binary Object.<\/p>\n<p>  \u041d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0443 \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u0430 \u0442\u0440\u0435\u0442\u044c\u0438\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c:<\/p>\n<pre><code class=\"java\">&lt;T> BinaryObjectBuilder setField(String name, T val, Class&lt;? super T> type) <\/code><\/pre>\n<p>  \u0432\u043c\u0435\u0441\u0442\u043e <\/p>\n<pre><code class=\"java\">BinaryObjectBuilder setField(String name, Object val) <\/code><\/pre>\n<p>  \u041f\u043e\u0447\u0435\u043c\u0443? \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e Ignite \u0445\u0440\u0430\u043d\u0438\u0442 \u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442 \u043f\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0443 \u043c\u0435\u0442\u0430\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0442\u0438\u043f\u0430\u0445 \u0438 \u0438\u0445 \u043f\u043e\u043b\u044f\u0445. \u041a\u043e\u0433\u0434\u0430 \u0434\u043b\u044f \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u0442\u0438\u043f\u0430 (\u0435\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0435 \u0432 <code>Ignite.binary().builder(<\/code><code>typeName<\/code><code>)<\/code>) \u0432\u044b \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u0435\u0442\u0435 BinaryObjectBuilder <code>setField(String name, Object val)<\/code> \u0441 \u043d\u043e\u0432\u044b\u043c <code>name<\/code>, \u0442\u043e Ignite \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442 <code>val.getClass()<\/code>, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u043a \u043a\u0430\u043a\u043e\u043c\u0443 \u043a\u043b\u0430\u0441\u0441\u0443 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043f\u043e\u043b\u0435 <code>name<\/code>. \u0415\u0441\u043b\u0438 <code>val<\/code> \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f <code>null<\/code>, \u044d\u0442\u043e \u0441\u0442\u0430\u043d\u0435\u0442 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0438 Ignite \u0431\u0443\u0434\u0435\u0442 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u044d\u0442\u043e \u043f\u043e\u043b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 <code>Object<\/code>, \u0447\u0442\u043e \u0441\u0442\u0430\u043d\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u043e\u0439. \u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0435 <code>setField \u0441 val != null<\/code> \u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u0443\u0442: \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u043f\u043e\u043b\u0435\u0439 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e. \u043a\u0435\u0448 \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u043e\u043c\u0430\u043d \u0434\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430.<\/p>\n<p>  \u0411\u044b\u0441\u0442\u0440\u0435\u0435 \u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Binary Object? \u0415\u0441\u043b\u0438 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442\u044b Data \u0432 Binary Object \u0438 \u043f\u043e\u0442\u043e\u043c \u0438\u0445 \u043f\u0438\u0441\u0430\u0442\u044c:<\/p>\n<pre><code class=\"java\">final List&lt;Entry&lt;Integer, Data>> data = ...; final Stream&lt;Entry&lt;Integer, BinaryObject>> binaryStream = data.stream().map(...); binaryStream.forEach(entry -> {  dataStreamer.addData(entry.getKey(), entry.getValue());  if (...) {    dataStreamer.flush();  } });<\/code><\/pre>\n<p>  \u0442\u043e \u043d\u0435\u0442:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/hg\/tg\/b5\/hgtgb5im_lybin3ra_dmzjjr3j0.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/hg\/tg\/b5\/hgtgb5im_lybin3ra_dmzjjr3j0.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0410 \u0432\u043e\u0442 \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c Binary Object \u0437\u0430\u0440\u0430\u043d\u0435\u0435:<\/p>\n<pre><code class=\"java\">final List&lt;Entry&lt;Integer, BinaryObject>> data = ...; data.forEach(entry -> {  dataStreamer.addData(entry.getKey(), entry.getValue());  if (...) {    dataStreamer.flush();  } });<\/code><\/pre>\n<p>  \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u0435\u0435:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/hg\/yb\/jf\/hgybjfxu0jctynqpun0a0x2plqq.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/hg\/yb\/jf\/hgybjfxu0jctynqpun0a0x2plqq.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0423\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 \u0434\u043e \u043f\u043e\u043b\u0443\u0442\u043e\u0440\u0430 \u0440\u0430\u0437! \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e, \u043c\u044b \u0432\u0441\u0451 \u043f\u0438\u0448\u0435\u043c \u0447\u0435\u0440\u0435\u0437 Binary Object. \u0427\u0438\u0442\u0430\u0439\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043b, \u0447\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434.<\/p>\n<p>  <a name=\"14\"><\/a><\/p>\n<h1>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043e\u0432\u0435\u0442\u044b<\/h1>\n<p>  <a name=\"15\"><\/a><\/p>\n<h2>\u0420\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u0442\u0435 \u0437\u0430\u043f\u0438\u0441\u044c \u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445<\/h2>\n<p>  \u0412\u044b\u0448\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u043b\u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e <code>List&lt;D\u0430ta><\/code> \u0438\u043b\u0438 <code>List&lt;BinaryObj\u0435ct><\/code>. \u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043a\u0443\u0434\u0430-\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0434\u0435\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0438\/\u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c BinaryObject, \u0447\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u043b\u044c\u0437\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441 \u0432\u044b\u0437\u043e\u0432\u043e\u043c <code>putAll(...)<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438. \u0420\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0435\u0431\u043e\u043a\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e <code>putAllAsync(...)<\/code>, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0435\u0433\u043e <code>IgniteFuture&lt;V\u043eid><\/code>. \u0412\u044b\u0437\u044b\u0432\u0430\u0439\u0442\u0435 <code>putAllAsync<\/code>, \u0438 \u043f\u043e\u043a\u0430 Ignite \u0442\u0440\u0443\u0434\u0438\u0442\u0441\u044f \u043d\u0430\u0434 \u0437\u0430\u043f\u0438\u0441\u044c\u044e, \u0433\u043e\u0442\u043e\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u0430\u0447\u043a\u0443, \u0447\u0442\u043e\u0431\u044b, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0438\u0441\u044c \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044f, \u043d\u0430\u0447\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e, \u043d\u0435 \u0434\u0430\u0432\u0430\u044f Ignite\u2019\u0443 \u043f\u0440\u043e\u0441\u0442\u0430\u0438\u0432\u0430\u0442\u044c. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"java\">private IgniteFuture&lt;Void> currentWriteFuture; public void pollAndWriteLoop() {   while (!Thread.currentThread().isInterrupted()) {     final Iterable&lt;byte[]> serializedPojos = pollSerializedData();     final Map&lt;Integer, BinaryObject> batch = deserializeAndCollect(serializedPojos); \/\/CPU expensive     currentWriteFuture.get(); \/\/throws IgniteInterruptedException extends RuntimeException     currentWriteFuture = cache.putAllAsync(batch);   } }<\/code><\/pre>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f <code>IgniteFuture.get()<\/code> \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0430\u044f, \u043d\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e <code>java.lang.InterruptedException<\/code> \u0431\u0440\u043e\u0441\u0430\u0435\u0442 unchecked <code>org.apache.ignite.IgniteInterruptedException<\/code>. \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e \u043d\u0435\u0433\u043e.<\/p>\n<p>  <a name=\"16\"><\/a><\/p>\n<h2>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 CacheEntryProcessor<\/h2>\n<p>  \u0411\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438, \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435. \u041c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u0432\u044b \u0434\u0430\u0436\u0435 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442\u0435 \u043f\u043e\u043b\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0435 \u043b\u044e\u0431\u044b\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c \u0432\u044b\u0448\u0435 \u043c\u0435\u0442\u043e\u0434\u043e\u043c. \u041d\u0438 \u0432 \u043a\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435 \u043f\u044b\u0442\u0430\u0439\u0442\u0435\u0441\u044c \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c, \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0435 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u043e. \u042d\u0442\u043e \u0438 \u043d\u0435 \u0430\u0442\u043e\u043c\u0430\u0440\u043d\u043e, \u0438 \u043e\u0447\u0435\u043d\u044c \u0434\u043e\u043b\u0433\u043e. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c Ignite <a href=\"https:\/\/ignite.apache.org\/docs\/latest\/distributed-computing\/collocated-computations\">EntryProcessor<\/a>, \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u043c\u0435\u0441\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 Ignite \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u043c \u0443\u0437\u043b\u0435, \u0445\u0440\u0430\u043d\u044f\u0449\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430. \u042d\u0442\u043e\u043c\u0443 \u043a\u043e\u0434\u0443 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0435\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"java\">public class PojoUpdateProcessor implements CacheEntryProcessor&lt;Integer, Data, Void> { public PojoUpdateProcessor(byte[] newPayload, int newInt3) { ... }  @Override public Void process(MutableEntry&lt;Integer, Data> mutableEntry, Object... objects) throws EntryProcessorException {   final Data currentPojo = mutableEntry.getValue();   ...   mutableEntry.setValue(...);   return null; }}<\/code><\/pre>\n<p>  \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 <code>IgniteCache.invoke(K key, CacheEntryProcessor&lt;K,V,T> entryProcessor, Object... arguments)<\/code> \u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445. \u0412\u0430\u0448 \u043a\u043b\u0430\u0441\u0441, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0439 <code>CacheEntryProcessor<\/code>, \u0434\u043e\u043b\u0436\u0435\u043d \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 classpath \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0445 \u0443\u0437\u043b\u043e\u0432, \u043b\u0438\u0431\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c <a href=\"https:\/\/ignite.apache.org\/docs\/latest\/code-deployment\/peer-class-loading\">peer class loading<\/a>. \u0412\u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u0432 \u043a\u0435\u0448, \u0432 <code>EntryProcessor<\/code> \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c BinaryObject. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 <code>EntryProcessor<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u043b\u044e\u0431\u044b\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u043a\u0435\u0448\u0430:<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public class NoArgBinaryObjectMutator implements CacheEntryProcessor&lt;Object, BinaryObject, Object> {  private static final long serialVersionUID = 1L;   private final Map&lt;String, Object> updatedNonNullFields;  private final Map&lt;String, Class&lt;?>> updatedToNullFields;  private final Map&lt;String, Class&lt;?>> notAffectedFields;  private final String typeName;   @SuppressWarnings(\"unused\") @IgniteInstanceResource  private Ignite ignite;   public NoArgBinaryObjectMutator(Map&lt;String, Object> updatedNonNullFields, Map&lt;String, Class&lt;?>> updatedToNullFields, Map&lt;String, Class&lt;?>> notAffectedFields, String typeName) {    this.updatedNonNullFields = updatedNonNullFields;    this.updatedToNullFields = updatedToNullFields;    this.notAffectedFields = notAffectedFields;    this.typeName = typeName;  }   @Override  public Object process(MutableEntry&lt;Object, BinaryObject> entry, Object... arguments) throws EntryProcessorException {    final BinaryObject value = entry.getValue();    final BinaryObjectBuilder objectBuilder;    if (value == null) {      objectBuilder = ignite.binary().builder(typeName);      notAffectedFields.forEach((fieldName, fieldClass) -> objectBuilder.setField(fieldName, null, fieldClass));    } else {      objectBuilder = value.toBuilder();    }    updatedNonNullFields.forEach(objectBuilder::setField);    updatedToNullFields.forEach((fieldName, fieldClass) -> objectBuilder.setField(fieldName, null, fieldClass));    entry.setValue(objectBuilder.build());    return null;  } }<\/code><\/pre>\n<\/div><\/div>\n<p>  <strong>\u0412\u0430\u0436\u043d\u0430\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c<\/strong>: \u043a\u0430\u043a \u044f \u043f\u0438\u0441\u0430\u043b \u0432\u044b\u0448\u0435, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0435 <code>setField(...)<\/code> \u0434\u043b\u044f \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u043f\u043e\u043b\u044f, Ignite \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442 \u043f\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0443 \u043c\u0435\u0442\u0430-\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043d\u043e\u0432\u043e\u043c \u043f\u043e\u043b\u0435 \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u0442\u0438\u043f\u0435. \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043d\u0435\u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u044e\u0449\u0438\u0439 \u0437\u0430\u043f\u0438\u0441\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043b\u0443\u0447\u0448\u0435 \u0441 \u043f\u0435\u0440\u0432\u043e\u0439 \u0436\u0435 \u0437\u0430\u043f\u0438\u0441\u044c\u044e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 BinaryObject \u0432\u0441\u0435 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u0435 \u043f\u043e\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u0430. \u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435, \u2014 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <code>null<\/code>. <\/p>\n<p>  <a name=\"17\"><\/a><\/p>\n<h1>\u0418\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u043f\u0430\u043c\u044f\u0442\u043a\u0430<\/h1>\n<p>  \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434: \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 Ignite \u2014 <a href=\"https:\/\/ignite.apache.org\/docs\/latest\/data-streaming\">IgniteDataStreamer<\/a>, \u043d\u043e \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, <strong>\u0442\u043e\u043b\u044c\u043a\u043e<\/strong> \u0435\u0441\u043b\u0438 \u043a\u043b\u044e\u0447\u0438 \u0432 \u0432\u0430\u0448\u0435\u043c \u043a\u0435\u0448\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b, \u0442\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u0432\u0435\u0434\u043e\u043c\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u043b\u044f \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u043a\u043b\u044e\u0447\u0430. \u0418\u043d\u0430\u0447\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e <code>IgniteCache.putAllAsync<\/code>, \u0440\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0432\u0430\u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0443 \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u2014 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0440\u0430\u0432\u043d\u0438\u043c\u0430 \u0441 <code>IgniteDataStreamer<\/code>. \u0410 \u0442\u0430\u043a\u0436\u0435:<\/p>\n<ol>\n<li>\u041f\u0438\u0448\u0438\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/ignite.apache.org\/docs\/latest\/key-value-api\/binary-objects\">BinaryObject<\/a> \u0432\u043c\u0435\u0441\u0442\u043e POJO \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043c\u0435\u0442\u043e\u0434 <code>setField<\/code> \u0441 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u043e\u0439 \u0438\u0437 \u0442\u0440\u0435\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 <code>(String, T, Class&lt;? extends T>)<\/code>, \u0430 \u043d\u0435 \u0434\u0432\u0443\u0445. \u041f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u043a\u0435\u0448 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442 BinaryObject \u0432\u0441\u0435 \u043f\u043e\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u0430, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0442\u0435, \u0447\u0442\u043e \u0440\u0430\u0432\u043d\u044b <code>null<\/code>.<\/li>\n<li>\u041f\u0438\u0448\u0438\u0442\u0435 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 batch\u2019\u0430\u043c\u0438, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0435\u0431\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u044c.<\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u043a\u0435\u0448 \u0441 \u0443\u043c\u043e\u043c: \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 SQL, \u0431\u043e\u043b\u044c\u0448\u043e\u0439 backup factor \u0438 \u043b\u0438\u0448\u043d\u0438\u0435 \u0438\u043b\u0438 \u0442\u044f\u0436\u0451\u043b\u044b\u0435 \u043f\u043e\u043b\u044f \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u044e\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438.<\/li>\n<li>\u0417\u0430\u043f\u0438\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044f \u0435\u0451 \u0441 <a href=\"https:\/\/ignite.apache.org\/docs\/latest\/clustering\/clustering\">\u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0433\u043e<\/a> \u0443\u0437\u043b\u0430. \u041c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c <a href=\"https:\/\/ignite.apache.org\/docs\/latest\/clustering\/clustering\">singleton service<\/a>.<\/li>\n<li>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043b\u0438\u0448\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u0435\u0439 \u0438\u0437 \u043c\u043d\u043e\u0433\u0438\u0445, \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <a href=\"https:\/\/ignite.apache.org\/docs\/latest\/distributed-computing\/collocated-computations#entry-processor\">Entry Processor<\/a>.<\/li>\n<li>\u0423 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043c\u0430\u0448\u0438\u043d \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435.<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/646639\/\"> https:\/\/habr.com\/ru\/articles\/646639\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/b7\/vr\/yp\/b7vryp4vumjtdobadqcfsyan7dw.png\" data-src=\"https:\/\/habrastorage.org\/webt\/b7\/vr\/yp\/b7vryp4vumjtdobadqcfsyan7dw.png\"\/><\/p>\n<p>  \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043a\u0432\u0430\u0434\u0440\u0438\u043b\u043b\u0438\u043e\u043d? \u042d\u0442\u043e \u0435\u0434\u0438\u043d\u0438\u0446\u0430 \u0441 15-\u044e \u043d\u0443\u043b\u044f\u043c\u0438, \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u043c\u0443\u0440\u0430\u0432\u044c\u0435\u0432 \u043d\u0430 \u043f\u043b\u0430\u043d\u0435\u0442\u0435 \u0438\u043b\u0438 100 \u0441\u0432\u0435\u0442\u043e\u0432\u044b\u0445 \u043b\u0435\u0442 \u0432 \u043a\u0438\u043b\u043e\u043c\u0435\u0442\u0440\u0430\u0445. \u0410 \u0435\u0449\u0435 \u044d\u0442\u043e <b>\u043e\u0431\u044a\u0435\u043c \u0442\u043e\u0440\u0433\u043e\u0432 \u0432 \u0440\u0443\u0431\u043b\u044f\u0445 \u043d\u0430 \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u0439 \u0431\u0438\u0440\u0436\u0435 \u0437\u0430 2021 \u0433\u043e\u0434. <\/b><\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0441\u0442\u0438\u0447\u044c \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0439, \u043e\u0447\u0435\u043d\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0439 \u0438 \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u043e\u043b\u0435\u0435 50% \u0448\u0442\u0430\u0442\u0430 \u0411\u0438\u0440\u0436\u0438 \u2013 \u0430\u0439\u0442\u0438\u0448\u043d\u0438\u043a\u0438, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u0441 \u043f\u0435\u0440\u0435\u0434\u043e\u0432\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439, \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0448\u0438\u0445 \u0418\u0422-\u0441\u0438\u0441\u0442\u0435\u043c \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 99,99%, \u0430 \u0435\u0449\u0435 \u043c\u044b \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0440\u0430\u0437\u0433\u043e\u043d\u044f\u0435\u043c \u043d\u0430\u0448\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b. \u041e\u0431 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0442\u0430\u043a\u043e\u0433\u043e \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0413\u0440\u0438\u0433\u043e\u0440\u0438\u0439 \u0414\u043e\u043c\u043e\u0436\u0438\u0440\u043e\u0432, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Data Grid.<\/p>\n<p>  \u2013 \u0412 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0435\u0441\u0442\u044c \u043a\u0443\u0447\u0430 \u0441\u0438\u0441\u0442\u0435\u043c-\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0438 \u0441\u0438\u0441\u0442\u0435\u043c-\u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0435\u0439 \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439. \u042f \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e \u0441\u0435\u0440\u0432\u0438\u0441, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f\u043c \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u0430. \u0412\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u043e \u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u044d\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u043e, \u0430 \u043c\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438\u0445 \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0441\u0432\u044b\u0448\u0435 500 \u0442\u044b\u0441\u044f\u0447 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043d\u0430 \u043f\u0438\u043a\u0435.<\/p>\n<p>  \u041a\u0430\u043a\u0438\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438? \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445 In-memory, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0442\u043e\u0440\u043c\u043e\u0437\u0438\u0442\u044c \u043e \u0434\u0438\u0441\u043a, \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u2013 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c. \u0422\u0430\u043a\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f In-Memory Data Grid, \u0438 \u044f\u0440\u043a\u0438\u0439 \u0435\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u044c \u2014 Apache Ignite. \u041d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u043c\u0430\u043b\u043e \u2013 \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u043d\u0435\u0433\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0435\u0433\u043e \u00ab\u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c\u00bb. \u0418 \u0441\u0435\u0439\u0447\u0430\u0441 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-417501","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/417501","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=417501"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/417501\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=417501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=417501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=417501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}