Part I
| First Name: | Azat |
| Last Name: | Davliatshin |
| Experience: | 9 years in JS developmentLife Science & Healthcare |
| Expertise: | FE, BE, Clouds, Mobile, Legacy |
| Criminal Records: | Had to force push changes into production branch |
import { json2csv } from 'json-2-csv';
import { PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
const urlAPI = "...";
const tokenAPI = "...";
const options = {
headers: '' // use tokenAPI
};
const fetchResponse = await fetch(urlAPI, options);
const data = fetchResponse.json();
const csv = await converter.json2csv(data);
const client = new S3Client({});
const command = new PutObjectCommand({});
await client.send(command);
import { json2csv } from 'json-2-csv';
import { PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
const urlAPI = "...";
const tokenAPI = "...";
const options = {
headers: '' // use tokenAPI
};
const fetchResponse = await fetch(urlAPI, options);
const data = fetchResponse.json();
const csv = await converter.json2csv(data);
const client = new S3Client({});
const command = new PutObjectCommand({});
await client.send(command);
import { json2csv } from 'json-2-csv';
import { PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
const urlAPI = "...";
const tokenAPI = "...";
const options = {
headers: '' // use tokenAPI
};
const fetchResponse = await fetch(urlAPI, options);
const data = fetchResponse.json();
const csv = await converter.json2csv(data);
const client = new S3Client({});
const command = new PutObjectCommand({});
await client.send(command);
import { json2csv } from 'json-2-csv';
...
// This package is deprecated, it should be replaced
const csv = await converter.json2csv(data);
...
Additional functionality request: launch task manually from UI, there are options for storages
try {
...
}
catch (exception) {
//TODO: try to understand what exactly throws this exception
}
Architecturally significant requirements
Click here to watch short video about ASR
Quality attributes
A QUALITY ATTIRBUTE (QA) is a measurable or testable property of a system that is used to indicate how well the system satisfies the needs of its stakeholders
QA deals with change and the cost in time or money of making a change, including the extent to which this modification affects other functions or quality attributes.
Software Architecture in Practice (SEI Series in Software Engineering)
//no magic values! ❌ 🧙 🔤
const urlAPI = "...";
const tokenAPI = "...";
// much better :) ✅
const urlAPI = process.env.managementToolApiUrl;
const tokenAPI = process.env.token;
// API
const fetchResponse = await fetch(urlAPI, options);
const data = fetchResponse.json();
// Converter
const csv = await converter.json2csv(data);
// Storage
const client = new S3Client({});
const command = new PutObjectCommand({});
await client.send(command);
Click here to read of Cohesion & Coupling
To be continued
Presentation
Telegram