{"id":314815,"date":"2020-12-14T09:01:25","date_gmt":"2020-12-14T09:01:25","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=314815"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=314815","title":{"rendered":"Serverless \u0448\u0430\u0433\u0430\u0435\u0442 \u043f\u043e \u043f\u043b\u0430\u043d\u0435\u0442\u0435. \u0421\u0440\u0430\u0432\u043d\u0438\u043c SberCloud \u0438 AWS"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<p><a href=\"https:\/\/habr.com\/ru\/post\/532814\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wl\/zn\/pz\/wlznpz-2vh4qtnya22nrafrar2e.png\" alt=\"image\"><\/a><\/p>\n<p>  <\/p>\n<p>\u041c\u043d\u0435 \u0441 \u0434\u0440\u0443\u0437\u044c\u044f\u043c\u0438 \u0434\u043e\u0432\u0435\u043b\u043e\u0441\u044c \u043f\u043e\u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0445\u0430\u043a\u0430\u0442\u043e\u043d\u0435 <a href=\"https:\/\/tech.sbercloud.ru\/hackatons\/advanced-hacking\" rel=\"nofollow\">SberCloud.Advanced Hacking<\/a> \u0438 \u043f\u043e\u0449\u0443\u043f\u0430\u0442\u044c \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0421\u0431\u0435\u0440\u0430. \u041d\u0430 \u043c\u043e\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043c\u0435\u0441\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0441 Serverless \u0441\u0442\u0435\u043a\u043e\u043c \u043e\u0442 AWS (CloudFront + Lambda Edge + S3 + Lambda + Step Functions + Aurora PostgreSQL Serverless + DynamoDB + Cognito). \u0422\u0430\u043a \u0447\u0442\u043e \u043c\u043d\u0435 \u0435\u0441\u0442\u044c \u0441 \u0447\u0435\u043c \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c. \u0415\u0441\u043b\u0438 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0438\u0441\u044c, \u0442\u043e \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0421\u0431\u0435\u0440 \u0432\u044b\u043a\u0430\u0442\u0438\u043b \u0432 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0441\u0432\u043e\u044e \u043e\u0431\u043b\u0430\u0447\u043d\u0443\u044e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 SberCloud. \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0441\u0435\u0439\u0447\u0430\u0441, \u0447\u0442\u043e\u0431\u044b \u0435\u0439 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u044e\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043b\u0438\u0446\u043e\u043c. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0438 \u0421\u0431\u0435\u0440\u0430 \u0433\u043e\u0432\u043e\u0440\u044f\u0442, \u0447\u0442\u043e, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043b\u044f \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043b\u0438\u0446 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0433\u043e\u0434\u0443. \u041d\u043e \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0445\u0430\u043a\u0430\u0442\u043e\u043d\u0430, \u044f \u0441\u043c\u043e\u0433 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0447\u0442\u043e \u0442\u0430\u043c \u0432\u043d\u0443\u0442\u0440\u0438, \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0441\u043c\u0435\u0440\u0442\u043d\u044b\u0439. \u0427\u0442\u043e \u044f \u0442\u0430\u043c \u0443\u0432\u0438\u0434\u0435\u043b? \u041e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e <a href=\"https:\/\/sbercloud.ru\/ru\/products\" rel=\"nofollow\">\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/a> \u043f\u0440\u044f\u043c, \u043a\u0430\u043a \u0443 AWS, \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0432\u043a\u0443\u0441.<\/p>\n<p>  <\/p>\n<p>\u041c\u0435\u043d\u044f \u043f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b Serverless \u0441\u0442\u0435\u043a. \u0412\u043e\u043e\u0431\u0449\u0435, \u043c\u0430\u043b\u043e \u043a\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0445\u0432\u0430\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c\u0438 Serverless \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u0421\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0441 \u043f\u043b\u0430\u0442\u043e\u0439 \u0437\u0430 \u043c\u0435\u0441\u044f\u0446 \u0443\u0436\u0435 \u043d\u0438 \u043a\u043e\u0433\u043e \u043d\u0435 \u0443\u0434\u0438\u0432\u0438\u0448\u044c. <\/p>\n<p>  <\/p>\n<p>\u042f \u0445\u043e\u0442\u0435\u043b \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0435 \u0442\u0430\u043a\u043e\u043c\u0443 \u0432 AWS.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/dl\/wy\/bf\/dlwybf-ucyogboqi2_yowcqm0nk.png\" alt=\"AWS Serverless Application\"><\/p>\n<p>  <\/p>\n<p>\u0412\u043e\u0442 \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0430 \u0441\u0442\u0435\u043a\u0435 SberCloud.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/40\/fw\/1f\/40fw1fphjx2bzjdmxo5lmpjitqc.png\" alt=\"SberCloud Serverless Application\"><\/p>\n<p>  <\/p>\n<p>\u042f \u0431\u044b\u0441\u0442\u0440\u0435\u043d\u044c\u043a\u043e \u0441\u043e\u0437\u0434\u0430\u043b \u043b\u044f\u043c\u0431\u0434\u0443 FunctionGraph.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/8n\/xx\/pu\/8nxxpuzt2t609axvbi62wtm3m8c.png\" alt=\"FunctionGraph. 1\"><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/td\/sq\/gt\/tdsqgtsdwnou_pgkh1mzs68mrwa.png\" alt=\"FunctionGraph. 2\"><\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u043b \u043a \u043d\u0435\u0439 API Gateway. \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b HTTP\/HTTPS trigger.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/3n\/3h\/gf\/3n3hgf6ofzkesrkoku3rujrd_rw.png\" alt=\"API Gateway\"><\/p>\n<p>  <\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u0447\u0438\u0442\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u043b\u044f\u043c\u0431\u0434\u044b \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0447\u0435\u043c \u0432 AWS. \u0412\u0441\u0451 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u041d\u0435\u043d\u0443\u0436\u043d\u043e \u043f\u0440\u044b\u0433\u0430\u0442\u044c \u043f\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0430\u043c \u0438 \u0438\u0441\u043a\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 Log Stream.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/x_\/br\/ze\/x_brzeyjj4zz4isslalf2hmcr9y.png\" alt=\"FunctionGraph Logs\"><\/p>\n<p>  <\/p>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0439 Serverless \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0443 SberCloud \u043d\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u0437\u044f\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441 \u0441 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u043e\u0439.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/sv\/cg\/du\/svcgduchwpgcuw_6qsedxxnkf8c.png\" alt=\"RDS Postgres\"><\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b Environment variables \u043e\u0442 PostgreSQL \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0443 \u043b\u044f\u043c\u0431\u0434\u044b FunctionGraph.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/oz\/de\/oc\/ozdeocuywa_nnatlwavlcnzgirc.png\" alt=\"Environment variables\"><\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 Serverless \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 PostgreSQL \u0431\u0430\u0437\u043e\u0439 \u0438\u0437 \u043b\u044f\u043c\u0431\u0434\u044b. \u041d\u0443\u0436\u043d\u043e \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0437\u0430 \u0441\u043e\u0431\u043e\u0439 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u0430 \u0442\u043e \u043e\u043d\u0438 \u043a\u043e\u043d\u0447\u0430\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">import { Client } from 'pg'  export const escapeId = (str: string): string =&gt; `&quot;${String(str).replace(\/([&quot;])\/gi, '$1$1')}&quot;`  export const escapeStr = (str: string): string =&gt; `'${String(str).replace(\/(['])\/gi, '$1$1')}'`  export const executeStatement = async &lt;T extends Record&lt;string, any&gt;&gt;(   sql: string ): Promise&lt;Array&lt;T&gt;&gt; =&gt; {   const client = new Client()   await client.connect()   try {     const res = await client.query(sql)     return res.rows   } finally {     await client.end()   } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b Object Storage Service.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/c-\/pv\/6l\/c-pv6lv2pnakknabbtfc1kv2twe.png\" alt=\"Object Storage Service. 1\"><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/y2\/cj\/li\/y2cjlis6zbk9xomrtbzurb8lxns.png\" alt=\"Object Storage Service. 2\"><\/p>\n<p>  <\/p>\n<p>\u041d\u0435\u043a\u043e\u0435 SDK \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 SberCloud \u0438\u043c\u0435\u0435\u0442\u0441\u044f, \u043d\u043e \u0447\u0435\u0433\u043e-\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u043c\u043d\u0435 \u0442\u0430\u043c \u043d\u0430\u0439\u0442\u0438 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/j6\/mn\/50\/j6mn506ofmr9uocaszi7q-7oxyy.png\" alt=\"SberCloud SDK\"><\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0432 Object Storage Service \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 URL \u043a\u043e\u0434 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043c\u0443. \u041d\u0435 \u0441\u0430\u043c\u043e\u0435 \u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0435 \u0437\u0430\u043d\u044f\u0442\u0438\u0435 \u0443\u0433\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u044b \u0438 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0445\u0435\u0448\u0438 \u0440\u0443\u043a\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">async (req: Request, res: Response) =&gt; {   validateUserHandler(req, res)    const { authToken } = context   const { userId } = req.params    const uploadId = uuidV4()    const body = Buffer.from(     JSON.stringify({       auth: {         identity: {           methods: ['token'],           token: {             id: authToken,             'duration-seconds': '900',           },         },       },     }),     'utf8'   )    const options = {     hostname: 'iam.ru-moscow-1.hc.sbercloud.ru',     port: 443,     path: '\/v3.0\/OS-CREDENTIAL\/securitytokens',     method: 'POST',     headers: {       'Content-Type': 'application\/json; charset=utf8',       'Content-Length': body.length,     },   }    const credentialBuffer: Buffer = await new Promise((resolve, reject) =&gt; {     const req = https.request(options, (res) =&gt; {       res.on('data', (data) =&gt; {         resolve(data)       })       res.on('error', (error) =&gt; {         reject(error)       })     })      req.write(body)     req.end()   })   const {     credential,   }: {     credential: { securitytoken: string; secret: string }   } = JSON.parse(credentialBuffer.toString('utf8'))   const { securitytoken, secret } = credential    const stringToSign = Buffer.from(     JSON.stringify({       expiration: '2020-12-31T12:00:00.000Z',       conditions: [         { 'x-obs-acl': 'public-read' },         { 'x-obs-security-token': securitytoken },         { bucket: 'anti-cube-images' },         ['starts-with', '$key', `${userId}\/`],       ],     }),     'utf8'   ).toString('base64')    const hmac = crypto.createHmac('sha1', secret)   hmac.update(stringToSign)   const signature = hmac.digest('base64')    res.json({     uploadId,     signature,   }) }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c SberCloud \u043c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0441\u044f. \u041e\u0447\u0435\u043d\u044c \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u043e. \u041d\u0435 \u043e\u0436\u0438\u0434\u0430\u043b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043d\u0430 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u043c \u0440\u044b\u043d\u043a\u0435. \u0416\u0435\u043b\u0430\u044e \u0421\u0431\u0435\u0440\u0443 \u043e\u0431\u0437\u0430\u0432\u0435\u0441\u0442\u0438\u0441\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0439 Serverless \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043f\u043b\u0430\u0442\u043e\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435. \u041b\u0443\u0447\u0448\u0435 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u044d\u0442\u043e\u043c \u043f\u043b\u0430\u043d\u0435 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 CosmosDB \u043e\u0442 Azure \u0438\u043b\u0438 \u043e\u043f\u0435\u043d\u0441\u043e\u0440\u0441\u043d\u043e\u0433\u043e <a href=\"https:\/\/github.com\/pingcap\/tidb#what-is-tidb\" rel=\"nofollow\">TiDB<\/a> \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445. \u0423 AWS \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0433\u0440\u0430\u043c\u043e\u0442\u043d\u043e, \u043d\u0435 \u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0443 \u043d\u0438\u0445. <\/p>\n<p>  <\/p>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e SberCloud \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 YouTube:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=DIzrFk7e-ZE\" rel=\"nofollow\">SberCloud Advanced Hacking. \u0412\u0435\u0431\u0438\u043d\u0430\u0440 \u043f\u043e \u00abGraph Engine Service\u00bb<\/a><\/li>\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=CmtWtTjev6A\" rel=\"nofollow\">SberCloud Advanced Hacking. \u0412\u0435\u0431\u0438\u043d\u0430\u0440 \u043f\u043e \u00abAPI Gateway\u00bb<\/a><\/li>\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=mYKNdtE8XOo\" rel=\"nofollow\">SberCloud Advanced Hacking. \u0412\u0435\u0431\u0438\u043d\u0430\u0440 \u043f\u043e \u00abFunction Graph\u00bb<\/a><\/li>\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=-Wp7YFAFC6Y\" rel=\"nofollow\">SberCloud.Advanced Hacking \/\/ \u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0445\u0430\u043a\u0430\u0442\u043e\u043d\u0430<\/a><\/li>\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=RETMdBl6DTY\" rel=\"nofollow\">SberCloud.Advanced Hacking \/\/ \u0412\u043e\u0440\u043a\u0448\u043e\u043f. \u041f\u0435\u0442\u0440 \u041f\u0440\u0435\u0434\u0442\u0435\u0447\u0435\u043d\u0441\u043a\u0438\u0439<\/a><\/li>\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=LmunuQh_uQI\" rel=\"nofollow\">SberCloud.Advanced Hacking \/\/ \u0412\u043e\u0440\u043a\u0448\u043e\u043f. \u041f\u0430\u0432\u0435\u043b \u041a\u0443\u0442\u0430\u043a\u043e\u0432<\/a><\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u2192 <a href=\"https:\/\/docs.sbercloud.ru\/\" rel=\"nofollow\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a><\/p>\n<p>  <\/p>\n<p>\u041d\u0430 \u0445\u0430\u043a\u0430\u0442\u043e\u043d\u0435 \u043c\u044b \u0441 \u0440\u0435\u0431\u044f\u0442\u0430\u043c\u0438 \u0434\u0435\u043b\u0430\u043b\u0438 \u0438\u0437\u043e\u043c\u043e\u0440\u0444\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 React+Redux. <a href=\"https:\/\/docs.google.com\/presentation\/d\/1LNjg2xfFHljTuH6ke_lkF6o1m9HTfemWcxW0w1OOssc\/edit?usp=sharing\" rel=\"nofollow\">\u041f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a> \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430: <\/p>\n<p>  <\/p>\n<div class=\"oembed\"><iframe id=\"5fd6a95505d782142ffea517\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/5fd6a95505d782142ffea517\"><\/iframe><\/div>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/532814\/\"> https:\/\/habr.com\/ru\/post\/532814\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<p><a href=\"https:\/\/habr.com\/ru\/post\/532814\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wl\/zn\/pz\/wlznpz-2vh4qtnya22nrafrar2e.png\" alt=\"image\"><\/a><\/p>\n<p>  <\/p>\n<p>\u041c\u043d\u0435 \u0441 \u0434\u0440\u0443\u0437\u044c\u044f\u043c\u0438 \u0434\u043e\u0432\u0435\u043b\u043e\u0441\u044c \u043f\u043e\u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0445\u0430\u043a\u0430\u0442\u043e\u043d\u0435 <a href=\"https:\/\/tech.sbercloud.ru\/hackatons\/advanced-hacking\" rel=\"nofollow\">SberCloud.Advanced Hacking<\/a> \u0438 \u043f\u043e\u0449\u0443\u043f\u0430\u0442\u044c \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0421\u0431\u0435\u0440\u0430. \u041d\u0430 \u043c\u043e\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043c\u0435\u0441\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0441 Serverless \u0441\u0442\u0435\u043a\u043e\u043c \u043e\u0442 AWS (CloudFront + Lambda Edge + S3 + Lambda + Step Functions + Aurora PostgreSQL Serverless + DynamoDB + Cognito). \u0422\u0430\u043a \u0447\u0442\u043e \u043c\u043d\u0435 \u0435\u0441\u0442\u044c \u0441 \u0447\u0435\u043c \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c. \u0415\u0441\u043b\u0438 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0438\u0441\u044c, \u0442\u043e \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442.<\/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-314815","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/314815","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=314815"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/314815\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=314815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=314815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=314815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}