<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Soo Min Jeong on Medium]]></title>
        <description><![CDATA[Stories by Soo Min Jeong on Medium]]></description>
        <link>https://medium.com/@soominjeongkr?source=rss-562e24a9c7b4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AXUTz_TgohPH0WzS-UcgXQ.jpeg</url>
            <title>Stories by Soo Min Jeong on Medium</title>
            <link>https://medium.com/@soominjeongkr?source=rss-562e24a9c7b4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 08:30:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@soominjeongkr/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Deploying a small web service with AWS Lambda (Serverless Freamwork)]]></title>
            <link>https://soominjeongkr.medium.com/deploying-a-small-web-service-with-aws-lambda-serverless-freamwork-c526b947ec8c?source=rss-562e24a9c7b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c526b947ec8c</guid>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[side-project]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[serverless-framework]]></category>
            <category><![CDATA[system-architecture]]></category>
            <dc:creator><![CDATA[Soo Min Jeong]]></dc:creator>
            <pubDate>Fri, 23 Feb 2024 15:43:14 GMT</pubDate>
            <atom:updated>2024-02-23T15:44:58.413Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s say you built a side project with Django, Flask, Fastify, or Express. What’s the estimation of the traffic? Speaking brutally honest, you wouldn’t really expect it to spike into billions of users at once. As much as scalability matters, an initial design should meet the small scale.</p><p>If your service expects less than 1M requests per month and fits into the package size of 50MB, AWS Lambda may serve your needs better than EC2. Using AWS Lambda as a server may not seem so familiar. It has been used for something simple like a single feature or an API. However,<a href="https://docs.aws.amazon.com/lambda/latest/dg/applications-usecases.html"> web application is one of the use cases</a> officially depicted by AWS.</p><p>Within aforementioned range, AWS Lambda is a better option than EC2 in terms of scalability, cost efficiency, and the convenience of deployment. It can be cheaper as you pay per use and it automatically scales up and down in response to the traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CuALG7dV2rLky1sapJbnUQ.png" /><figcaption>Serverless Framework</figcaption></figure><p>If you have never deployed your application on AWS Lambda, <a href="https://www.serverless.com/">Serverless Framework</a> offers a simple but versatile deployment. If your application code is ready, it will take less than 10 minutes to <a href="https://www.serverless.com/framework/docs/providers/aws/guide/functions">set up the automated deployment into AWS Lambda</a>. Once you sync the AWS account, provide the handler of the application in serverless.yml as the following code, it’s all done.</p><pre># serverless.yml<br>service: myService<br><br>provider:<br>  name: aws<br>  runtime: nodejs14.x<br>  runtimeManagement: auto # optional, set how Lambda controls all functions runtime. AWS default is auto; this can either be &#39;auto&#39; or &#39;onFunctionUpdate&#39;. For &#39;manual&#39;, see example in hello function below (syntax for both is identical)<br>  memorySize: 512 # optional, in MB, default is 1024<br>  timeout: 10 # optional, in seconds, default is 6<br>  versionFunctions: false # optional, default is true<br>  tracing:<br>    lambda: true # optional, enables tracing for all functions (can be true (true equals &#39;Active&#39;) &#39;Active&#39; or &#39;PassThrough&#39;)<br><br>functions:<br>  hello:<br>    handler: handler.hello # required, handler set in AWS Lambda<br>    name: ${sls:stage}-lambdaName # optional, Deployed Lambda name<br>    description: Description of what the lambda function does # optional, Description to publish to AWS<br>    runtime: python3.11 # optional overwrite, default is provider runtime<br>    runtimeManagement:<br>      mode: manual # syntax required for manual, mode property also supports &#39;auto&#39; or &#39;onFunctionUpdate&#39; (see provider.runtimeManagement)<br>      arn: &lt;aws runtime arn&gt; # required when mode is manual<br>    memorySize: 512 # optional, in MB, default is 1024<br>    timeout: 10 # optional, in seconds, default is 6<br>    provisionedConcurrency: 3 # optional, Count of provisioned lambda instances<br>    reservedConcurrency: 5 # optional, reserved concurrency limit for this function. By default, AWS uses account concurrency limit<br>    tracing: PassThrough # optional, overwrite, can be &#39;Active&#39; or &#39;PassThrough&#39;<br></pre><p><strong>Wait, AWS Lambda service stays up for only 15 min and shuts down. Will the users have to suffer the boot time every 15 min?</strong></p><p>This is the most common concern when it comes to using AWS Lambda for a service whose expected availability is 100%. Serverelss Framework offers <a href="https://www.serverless.com/plugins/serverless-plugin-warmup">a plugin </a>called Warmup , which pings the AWS Lambda job regularly so that it could stay up 24/7.</p><p><strong>Keeping it 24/7? Isn’t it too expensive?</strong></p><p>Thanks to the beauty of pay-per-use, it can be even cheaper than EC2 instances. If your service needs low-computing tasks with less than 50,000 requests, you can operate cheaper with AWS Lambda.</p><p>AWS Lambda pricing is based on the number of requests and their durations. It’s free up to 1 million requests per month, and 400,000 GB-s with a limit of 3.2 million seconds (<a href="https://docs.aws.amazon.com/whitepapers/latest/how-aws-pricing-works/lambda.html#">source</a>). For example, if your task requires 512 MB of memory and each request takes 1 second, it will cost you nothing up to 800,000 requests.</p><p><strong>… but web application is more than an API. What about other features like logging, endpoint management, and storage?</strong></p><p>AWS offers it all, and you can easily configure services like Cloudwatch, S3, and API Gateway in the serverless.yml. Serverless Framework deploys other services with CloudFormation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*pWnhrpee2P0h-QGDkJ6n1Q.png" /><figcaption>Architecture of the server deployed into AWS Lambda with Serverless Framework</figcaption></figure><p><strong>The Lambda job is all set. Now how do I expose the endpoint to the public users?</strong></p><p>There’s a prerequisite to this step — a TLS/SSL certificate registered in AWS Certificate Manager. After that, you can choose either using a Serverless Framework plugin or working on AWS UI.</p><p>You can create custom domain names and map them to the Lambda job with <a href="https://www.serverless.com/plugins/serverless-domain-manager">serverless-domain-manager</a>. Or you can easily set it up in Route53. Once you map your custom domain in Route53 into the API in the API gateway, the requests into the domain will go into the Lambda job via API Gateway (Please refer to the screenshot below). As this configuration is usually done only once, the manual process can be more straight-forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jQ-lQQqVslRYD6q4v5BCgQ.png" /><figcaption>You can map your custom domain name to a Lambda job in Custom domain names &gt; API mappings.</figcaption></figure><p><strong>How can I de-couple from the Serverless Framework?</strong></p><p>You can simply remove the serverless.yml , adjust the code to de-couple it from the AWS Lambda requirements (handler with parameters like event andcontext , and set up your own CI/CD pipeline. The template in the CloudFormation is going to provide all the information about the infrastructure.</p><p>If it sounds convincing to you, you can start with <a href="https://www.serverless.com/framework/docs/tutorial">this official tutorial</a>. Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c526b947ec8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[REST vs RPC, and why REST wins in mobile apps (+Hypermedia)]]></title>
            <link>https://medium.com/analytics-vidhya/rest-vs-rpc-and-why-rest-wins-in-mobile-apps-hypermedia-a447d1f379b4?source=rss-562e24a9c7b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/a447d1f379b4</guid>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[http-request]]></category>
            <category><![CDATA[http-client]]></category>
            <category><![CDATA[backend-development]]></category>
            <dc:creator><![CDATA[Soo Min Jeong]]></dc:creator>
            <pubDate>Sun, 01 May 2022 14:53:02 GMT</pubDate>
            <atom:updated>2022-05-02T08:29:45.008Z</atom:updated>
            <content:encoded><![CDATA[<h3>REST vs RPC, and why REST wins in mobile apps (with Hypermedia)</h3><p>I have built APIs only for mobile clients (Android and iOS), and they were REST. Not until I had to call APIs in XML-RPC, did I truly understand how REST distinguishes. So here is my brief post about the differences between REST and RPC, and why (I think) REST defeats RPC in mobile apps.</p><h3>REST and RPC</h3><p>They are both HTTP protocols, a spec that servers and clients conform to in communication.</p><p>According to <a href="https://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm">Roy Fielding’s dissertation</a>, REST is an architectural style to guide the design and development of the architecture for the modern Web. RPC is another set of rules for disparate operating systems in different environments to communicate with each other.</p><h3>Major Differences between REST and RPC</h3><p>Let’s take an example of an API to call when a user 12 wants to block a user 39 .</p><p>In REST API, the request will be:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*DXSdmnDUF-zNhL9fiA7hgg.png" /><figcaption>RPC API to block a user</figcaption></figure><p>In (JSON-)RPC, the request will be:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*Hrd7NmJaSsTSa7XzDsPtTw.png" /><figcaption>RPC API to block a user</figcaption></figure><p>I’d like to put it this way: they are both languages for communication, and a language has some grammatical rules to keep. REST focuses on <strong>nouns</strong>, while RPC focuses on <strong>verbs</strong>.</p><p>The URI in REST API talks in nouns. It focuses where the data lies (data representation), and reveals the data modeling. A user data model will have a related model called blockedUser , and there we will put the block relationship.</p><p>RPC stresses an action. It calls a server to BlockUser . The subject and object will be delivered in the body, and the URL tells the verb.</p><h3>Challenges in building APIs of mobile applications</h3><ol><li>Response time</li></ol><p>30 years ago, researchers proved that within 1 second, users will feel that their thought process is interrupted [Miller 1968; Card et al. 1991]. Considering how impatient we became, the industry standard (2 ms to 1s) does not sound harsh at all. To give some buffer for clients to process the API response, API response time should be shorter than the threshold.</p><p>2. API Compatibility</p><p>We commit every day. Source code changes, data structure changes, infrastructure changes, and API changes in the end. We can update the web clients as soon as we deploy, but we cannot force users to update their mobile apps. The backend of mobile apps should serve multiple versions at the same time.</p><h3>Why REST wins in mobile applications</h3><ol><li>Lighter payload</li></ol><p>As the URI in RPC API simply describes the action, the data representation goes into the body. It reduces the network cost, enabling faster communication between server and client. Considering one page in the client side may trigger multiple requests at once, the response time plays a significant role in user experience.</p><p>2. API compatibility thanks to hypermedia</p><p>Even though the payload is heavier in RPC, it excels in that the client does not have to know the data modeling in the server. Moreover, the changes in the data modeling and URI can break the API compatibility. That’s where you start to put some ugly tag like v2.</p><p>There’s a solution. Hypermedia, a fundamental component in REST API, can show allowed actions (verbs!). The links in the response tells the client to call /users/12/blockedUsers to do block . If the data modeling or URI changes, the response will return the updated endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pi1AP6mFbiKMRlw4ZdnQ-g.png" /></figure><p>Response time and API compatibility were the biggest headaches as a backend developer. I had to spend weeks and months to decrease the response time by a few milliseconds. When there was no other way to support users who never update the app and use the old API, I couldn’t help but put the v5 into the new URIs. I never questioned why the REST API became the go-to architectural style, but now I see why.</p><h3>Resources</h3><ul><li><a href="https://www.smashingmagazine.com/2016/09/understanding-rest-and-rpc-for-http-apis/">Understanding RPC Vs REST For HTTP APIs</a></li><li><a href="https://www.mscharhag.com/api-design/hypermedia-rest">Introduction to Hypermedia REST APIs</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a447d1f379b4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/rest-vs-rpc-and-why-rest-wins-in-mobile-apps-hypermedia-a447d1f379b4">REST vs RPC, and why REST wins in mobile apps (+Hypermedia)</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What to Return at an Unexpected Error from API]]></title>
            <link>https://soominjeongkr.medium.com/what-to-return-at-an-unexpected-error-from-api-a1e5199c3b81?source=rss-562e24a9c7b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1e5199c3b81</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <dc:creator><![CDATA[Soo Min Jeong]]></dc:creator>
            <pubDate>Sun, 17 Apr 2022 16:22:43 GMT</pubDate>
            <atom:updated>2022-05-22T20:22:39.325Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lE1r4kzKEjTgBoeb.jpeg" /><figcaption>When API returns something crazy (Photo by Andrea Piacquadio from Pexels)</figcaption></figure><p><strong>TL; DR</strong>: API returns something crazy. What should this API calling component return? None? -1? &quot;&quot;? None of the above. Raise an exception.</p><h3>Problem</h3><p>There is a function that gets a response from an API and returns it to another function in a specific data type. This post is about what to return when the API returns <em>an error</em>.</p><p>A few (quite common in reality) characteristics of <em>this error</em>:</p><ul><li>The error message from the API does not contain much detail to help developers to understand, or debug the problem.</li><li>The product behind the API is still under development; hence, it is likely that the error is something unexpected at all.</li><li>The client calling the API system requires high accuracy. It would rather break the pipeline and goes down than receive any unreliable values.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/0*3WpUsTl32kLuL_vA.png" /><figcaption>Picky Client and Clumsy Server</figcaption></figure><p>With these given, it is more reliable to fail the program when the target API returns something unexpected, instead of dealing with it based on the wrong assumptions.</p><h3>Extra Requirements</h3><p>To be a little more graceful, it would be great if</p><ul><li>the function logs the error message, so that the developers could have a bit more hint.</li><li>the program instantly stops, without making more error messages due to the cascading errors after the unexpected response.</li><li>how the function handles the error is written in scalable architecture</li></ul><h3>Solution</h3><ol><li>Create an exception class (<em>api_exception.py</em>) away from the one calling the API</li><li>Add an exception message in the __init__ so that the main Exception class can handle the logging</li></ol><pre># api_exception.py</pre><pre>from typing import List</pre><pre>class ApiException(Exception):<br>    def __init__(self, school: str, class_num: int, attrs=List[str]):<br>        self.school = school<br>        self.class_num = class_num<br>        self.attrs = attrsmsg = f&quot;API call to class_num({class_num}) at school({school}) to obtain {attrs} failed&quot;<br>        <br>        super().__init__(msg)</pre><p>3. Raise the Exception in the component calling the API (<em>client.py</em>) so that the program fails instantly when given an error</p><pre># client.pyfrom typing import Any<br>from typing import cast<br>from typing import Dict<br>from typing import List</pre><pre><br>class APIClient:<br>  <br>    &quot;&quot;&quot;<br>    calls the third-party API with the given parameters<br>    &quot;&quot;&quot;<br>   def call_api(school: str, class_num: int, attrs: List[str]) -&gt; List[Dict[str, Any]]:<br>      <br>        # API is expcected to return something like this...<br>        dummy_res = [{&quot;name&quot;: &quot;Jane Doe&quot;, &quot;age&quot;: 7}, <br>                     {&quot;name&quot;: &quot;John Doe&quot;, &quot;age&quot;: 8}]</pre><pre>        return dummy_res</pre><pre>    def load_from_api(<br>        self, school: str, class_num: int, attrs: List[str]<br>    ) -&gt; List[Dict[str, Any]]:  <br>      <br>        try:<br>            data = call_api(school, class_nu, attrs)<br>            return cast(List[Dict[str, str]], data)        </pre><pre>        except Exception as err:<br>            raise ApiException(<br>                school=school, class_num=class_num, attrs=attrs<br>            ) from err</pre><h3>Don’ts</h3><ol><li>Leave the log simply in the API-calling component and return something unexpected</li></ol><pre>...<br>import logging</pre><pre>logger = logging.getLogger(__name__)<br>...</pre><pre>def load_from_api(<br>        self, school: str, class_num: int, attrs: List[str]<br>    ) -&gt; List[Dict[str, Any]]:        <br>    <br>     try:<br>         data = call_api(school, class_nu, attrs)<br>         return cast(List[Dict[str, str]], data)        <br>     <br>     except Exception as err:<br>         logger.error(f&quot;API call to class_num({class_num}) at school({school}) to obtain {attrs} failed&quot;)<br>         return -1    # None, or empty string</pre><p>This code does not conform to the expected data type to return.</p><p>2. Okay, then what about we return something that conforms to the expected data type?</p><pre>try:<br>      data = call_api(school, class_nu, attrs)<br>      return cast(List[Dict[str, str]], data)</pre><pre>except Exception as err:<br>      return cast(List[Dict[str, str]], None)</pre><p>This could be misleading because the API may have returned None . We cannot distinguish if the error returned it or the API did.</p><h3>Takeaways</h3><ul><li>Avoid returning something arbitrary (i.e. -1 ,None , &quot;&quot; ), but raise an exception, because returning such values can be misleading</li><li>Raise an exception that is broad enough, when a third-party API specification is not clear. It should be ready to log whatever API returns.</li></ul><h3>Resources</h3><ul><li>Intellectual hints: my colleague M.</li><li>Photo by Andrea Piacquadio from Pexels <a href="https://www.pexels.com/photo/adult-surprised-executive-man-using-computer-beside-ethnic-colleague-in-open-space-office-3755700/">Link</a></li><li>Icon in the figure: Server icons created by Pixel perfect — Flaticon <a href="https://www.flaticon.com/free-icons/server">Link</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1e5199c3b81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Replacing a MySQL Log Database with a Serverless Piepeline on AWS]]></title>
            <link>https://levelup.gitconnected.com/replacing-a-mysql-log-database-with-a-serverless-piepeline-on-aws-2083de09062a?source=rss-562e24a9c7b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2083de09062a</guid>
            <category><![CDATA[aws-kinesis]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <category><![CDATA[aws-emr]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Soo Min Jeong]]></dc:creator>
            <pubDate>Mon, 18 Jan 2021 11:14:21 GMT</pubDate>
            <atom:updated>2021-01-19T22:39:50.238Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I replaced a MySQL Log Database with a Serverless Pipeline on AWS</h3><p>This article is about a project where I replaced a MySQL-based log system of a running service.</p><h3>Why do we need our own log system?</h3><p>Because Google Analytics or Firebase is not enough. Even though it supports a great variety of tools for data analytics, you still need a customized log system for a detailed analysis. Detailed experiments on user action require precisely designed logs collected in a custom log stream.</p><h3>MySQL, you’ve been good to me</h3><p>The old log system was based on MySQL RDS. A log request passed the load balancer to reach the API server just as other requests related to app service did. An API server would distinguish log-related URLs and call a log service, which triggers SQL transactions to save them in MySQL databases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/0*r15FEhZhHL5SuQ54.png" /><figcaption>The old data stream</figcaption></figure><p>A thank-you note: MySQL was doing a decent job. Traffic peaks were well handled with sharding, optimization of configurations, and instance upscaling. It did not lose any data and returned correct result. It was not until read transactions would take a good few minutes that I noticed the inefficiency.</p><p>MySQL was too heavy for the logs. After piling up the data without any deletion, queries were getting slower. Indexing was not only risky for a running system but meaningless as the analytical queries were unstandardized.</p><p>Plus, the log sysetm did not cherish sophisticated features of MySQL. Simple text storage would well do the job. Log databases were intensively write-oriented. In the meantime, the only read transactions were a few queries for weekly report.</p><p>So, I decided to build a new log pipeline.</p><h3>Time for a breakthrough</h3><h3>From RDS to S3</h3><p>To replace a MySQL RDS, I create a S3 bucket and folders in it corresponding to the tables in the old database. To convert a JSON body in the requests into text files every 15 minutes, the combination of Lambda and Kinesis was a perfect fit.</p><p>Lambda parses JSON body and hands the data over to a corresponding Kinesis Datastream based on its endpoint. Kinesis Datastream flushes the stacked data regularly over to Kinesis Firehose. Kinesis Firehose encodes the data in a designated data format like parquet or Apache ORC and finally saves them in an S3 folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/0*j5WTE7Fziu-L5fH1.png" /><figcaption>Replace RDS with S3 and EC2 with Lambda and Kinesis</figcaption></figure><h4>Connect the log stream with a load balancer</h4><blockquote><em>TL;DR: Go to “</em><strong><em>Third Trial</em></strong><em>”</em></blockquote><p>Now it was time to connect the entrance of the log stream, Lambda, to an API.</p><p><strong>First Trial: add API Gateway to redirect requests to Lambda</strong></p><p>My initial idea was to use the API Gateway. API Gateway accepts requests and delivers them to a Lambda function. Here popped up the first challenge. API Gateway does allow you to use a custom domain for a point as long as it belongs to you; however, you cannot fully customize the URL. API Gateway assigns it instaed in such format: <a href="https://yourdomain.com/custom/path/%7BAPI_GATEWAY_ID%7D."><em>https://yourdomain.com/custom/path/</em><strong><em>{API_GATEWAY_ID}</em></strong>.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/0*qmG2YQGW3UuCq8Vv.png" /><figcaption>First trial — Make new URLs for log collection on API Gateway, and deliver the data to Lambda</figcaption></figure><p>A web service may well take this design as changing an endpoint is relatively easy. In case of app service, however, keeping the old endpoints was significant because of the old releases. Even though we update the mobile app to operate on new endpoints for logging, the majority would still use the old versions. We could not afford losing the data.</p><p><strong>Second Trial: let classic load balancer redirect requests to Lambda</strong></p><p>The second design was a little detour to let load balancers redirect log-related requests to the Lambda function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/0*kNBD5CISN3GhP7-Q.png" /><figcaption>Second design — Redirect only the log-related request to Lambda</figcaption></figure><p>Another challenge was here. We were operating on Classic Load Balancers (CLB) which did not offer redirection based on the endpoint path of a request.</p><p><strong>Third Trial: update classic load balancers to application load balancers</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/0*SqimthYmZtwBMZvg.png" /><figcaption>Third design — Update classic load balancers to application load balancers</figcaption></figure><p>A little modification to the second design made it work. I upgraded the classic load balancers to application load balancers, which offer redirection based on an endpoint path.</p><h3>How to access the data</h3><p>While the design was proved to stack data successfully, we needed a way to access the text files and run some queries. Since the team analyzed the data with SQL queries so far, supporting SQL queries was a crucial requirement. The quick transaction was a plus.</p><p>Amazon EMR was the best option. Though it is a bit pricey, it’s worth it. It supports popular data analytics products like Spark, Hive, Flink, Zeppelin, and many more. The cloud big data platform is easily scalable and charged for only the operating hours . As long as you do not forget to turn the instances off, the bills won’t surprise you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/0*nRXOqbWWiLg2M4yM.png" /><figcaption>EMR as a data analytics tool to access S3</figcaption></figure><h3>Can I call the transition a success?</h3><p>With the new architecture, some problems were expected.</p><h4>Complicated structure</h4><p>Previously one EC2 instance handled everything. It received, parsed, saved the data. The new design is shattered into 4 AWS products: ALB, Lambda, Kinesis Datastream, and Kinesis Firehose. The new design requires extra attention to understand the log stream compared to the old simple design.</p><h4>Costly EMR</h4><p>EMR price consists of one for EMR itself and the other for computing powers(EC2). As of January of 2021, the price of an EMR instance starts from $0.193. Compared to an RDS in the old log system, it is quite costly.</p><p>Nevertheless, I would say the advantages exceed the disadvantages.</p><h4>Less operation cost</h4><p>The cost of the MySQL RDS instance was expected to be twice the collective cost of Lambda, Kinesis Datastream, Kinesis Firehose, S3, and EMR. Even some partial cost of the old system was hidden under that of main API servers, as they handled the log traffic.</p><h4>Easy to maintain</h4><p>The new serverless architecture demands less maintenance. Lambda and Kinesis both offer auto-scaling; therefore, there is no need for a developer to keep watching the traffic.</p><p>Plus, creating and removing a log stream is convenient. Especially a team with frequent feature tests would fully enjoy the benefit. You don’t have to modify the code in your server and deploy them anymore. A few lines of code in Lambda and a few clicks on Kinesis will do.</p><h4>Stronger data analytics tools</h4><p>While the previous system offered only MySQL queries for data analytics, EMR is packed with various big data analytics framework. If you would like to maximize the speed, you can easily scale up the instances.</p><h3>Changing the wheels on a moving car</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-GG17r_ZVATuYbaw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@gohrhyyan?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Goh Rhy Yan</a> on <a href="https://unsplash.com/s/photos/tire-change?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>The process was particularly complicated because it was a replacement of a log stream on a running service.</p><h4>Keep the old endpoints for the previously released apps</h4><p>Not every user is on the same page. Some users would keep the first downloaded version for good. Since these old apps are delivering their data to the old endpoints, a design with new endpoints for logging was not feasible.</p><h4>Manage the conversion seamlessly</h4><p>Missing values undermine the data integrity. Data leakage was unacceptable at expense of the log stream replacement. The transition had to be planned thoroughly so that we would not lose a request in the meantime.</p><p>This project was designed and implemented last year. Though I looked up AWS update notes to be up-to-date, any comment is more than welcome! Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2083de09062a" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/replacing-a-mysql-log-database-with-a-serverless-piepeline-on-aws-2083de09062a">Replacing a MySQL Log Database with a Serverless Piepeline on AWS</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[숫자로 이야기하는 회의를 위해 개발자가 할 수 있는 일]]></title>
            <link>https://soominjeongkr.medium.com/%EC%88%AB%EC%9E%90%EB%A1%9C-%EC%9D%B4%EC%95%BC%EA%B8%B0%ED%95%98%EB%8A%94-%ED%9A%8C%EC%9D%98%EB%A5%BC-%EC%9C%84%ED%95%B4-%EA%B0%9C%EB%B0%9C%EC%9E%90%EA%B0%80-%ED%95%A0-%EC%88%98-%EC%9E%88%EB%8A%94-%EC%9D%BC-ce8601049d59?source=rss-562e24a9c7b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce8601049d59</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[junior-developer]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-driven-decisions]]></category>
            <dc:creator><![CDATA[Soo Min Jeong]]></dc:creator>
            <pubDate>Wed, 11 Mar 2020 01:46:58 GMT</pubDate>
            <atom:updated>2022-04-17T16:01:58.635Z</atom:updated>
            <content:encoded><![CDATA[<h3>SQL 사내교육, Zeppelin 구축, 그리고 실제 DB에 적용하기</h3><p>많은 스타트업이 그렇듯, 저희 팀 역시 늘 결정의 기로에 섭니다. 버튼 위치부터 KPI 설정까지 잠깐, 길게, 앉아서, 서서, 밥먹다가, 양치하다가 이야기가 끊이질 않는데요. 서로를 설득하는 지난한 과정을 거치며, 객관적인 지표로 이야기하면 더 정확하고 빠르게 논의를 마칠 수 있지 않을까 생각했습니다.</p><h4>데이터도 감이 있어야</h4><p>의사 결정의 근거가 필요할 때면 백엔드 개발자인 제가 주로 데이터를 가공하여 공유하지만, 사실 데이터에 대한 감각은 가장 떨어진다고 느꼈습니다. 같은 데이터를 봐도, 기획팀이나 운영팀이 뽑아내는 인사이트가 더 근사했기 때문입니다. 제가 데이터 엄청나게 돌려서 결과를 짜잔 가져갔는데, 이미 다 알고 계시더라고요.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*MEGFTKNTU0tZ-EsidUGgMQ.png" /><figcaption>아니 좀 그럼 미리 알려주시지 좀</figcaption></figure><p>그 후로도 제가 전혀 생각지 못한 가설을 운영팀에서 세우는 걸 여러번 겪었어요. 곧 DB에 가까운 사람보다 유저에 가까운 사람이 데이터를 봐야한다는 확신이 들었습니다. 이 글은 지난 3개월 간 그 확신을 실행에 옮긴 이야기입니다.</p><h4>DB 공유의 장애물</h4><p>DB에 대한 접근권을 비개발팀에게 공유하기 위해 세가지를 해결해야 했습니다. 비개발팀에서 데이터 분석을 위해 SQL을 학습하는 일, 데이터 분석을 위한 툴을 구축하는 일, 그리고 실제 서비스에 영향이 가지 않는 DB 접근 방식을 찾는 일이었습니다.</p><h4>1) 겁먹지 말아요 SQL</h4><p>먼저 매주 2시간 씩 5주 동안 기획팀과 운영팀을 대상으로 SQL 사내교육을 실시했습니다. 테이블 생성, 데이터 추가 및 수정과 같은 부분은 모두 제외하고, 철저히 데이터를 추출하는 문법에 집중했습니다.</p><p>1주차부터 실제 상용 DB의 스냅샷으로 복사본을 띄우고 Sequel Pro를 이용해 접속했습니다. 매 세션 이후에는 실제 데이터에 대한 과제를 내드리고, 그 다음 세션에 같이 풀어봤어요. 예를 들면 지난주 가입자가 몇명이었는지, 가입한 사람들이 올린 이미지는 몇장이나 되는지 같은 것들이었습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*OTYFQfwMCUYlij76w4uWhg.png" /><figcaption>깔끔한 UI와 손쉬운 설치를 자랑하는 Sequel Pro</figcaption></figure><p><strong>1주차: SQL 문법 I (select, from, where, limit, order by, and, or, not)</strong></p><p><strong>2주차: SQL 문법 II (join, group by, having, count, sum)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CKO5PFkVOJaSg-e4oJKQ8w.png" /><figcaption>수포자에게 함수가 있다면, 우리에겐 JOIN이 있었죠.</figcaption></figure><p><strong>3주차: DB 구조 분석</strong></p><ul><li>실제 DB에서 기획팀과 운영팀에서 궁금해할 데이터가 어디에 위치하고 있는지 설명했습니다.</li></ul><p><strong>4주차: 기본 통계 분석</strong></p><ul><li>매주 팀에 공유되는 기본적인 통계들을 직접 뽑아보고, 개발자들이 작성해둔 쿼리를 읽고 어떤 데이터를 뽑는지 분석했습니다.</li></ul><p><strong>5주차: 가설 증명</strong></p><ul><li>기획팀이나 운영팀에서 어떤 프로젝트를 시작하기 전에 정말 필요한 조치인지, 그리고 사후에 실제로 효과가 있었는지를 함께 분석했습니다.</li></ul><p>특히 5주차에는 증명하고 싶은 가설이 있는지 여쭤봤는데, 화면 상단에 노출되었을 때 판매가 얼마나 증가하는지 보고 싶다고 하셨어요. 동일 상품에 대해 노출 기간 중 매출과 그 외 기간의 매출을 비교해 약 17배 가까운 차이가 있음을 확인했습니다. 역시 데이터 패턴에 대한 감각이 좋으시더라고요.</p><h4>2) Apache Zeppelin으로 시너지 내기</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/0*pGg5sG-diRk-NHR2.png" /><figcaption>아니 얘 말고요</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLlgJPctM8FBbjq2_1YzwA.png" /><figcaption>얘요!</figcaption></figure><p>SQL 사내교육 때부터 Apache Zeppelin(이하 Zeppelin)을 활용하기 시작했습니다. 도입한 이유는 세 가지 정도가 있었는데요.</p><ol><li><strong>쿼리의 재활용</strong></li></ol><p>자주 보게 되는 주요 지표들 (가입자, 소셜 액션, 판매액 등)은 같은 쿼리에 날짜만 수정해서 씁니다. 그래서 다음과 같이 변수로 지정해두고 확인하면 반복적인 업무를 줄였습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KrFfwiSQK3QowMEeR4bI_A.png" /><figcaption>노트북의 장점, 마크다운</figcaption></figure><p><strong>2. 같은 데이터에 대한 다각화된 관점의 축적</strong></p><p>최근 장바구니 기능을 개발하게 되면서 매출 쪽 지표들을 다시 살펴보았습니다. 그 지표들을 조합하다가 <strong>1분 내에 반복적으로 구매해야해서 불편했던 유저</strong>가 얼마나 될지를 개선해야할 지표로 삼았습니다. 쿼리를 남기면 같은 데이터셋에 대한 여러 분석방식이 쌓이기 때문에, 다각화된 관점이 함께 쌓입니다.</p><p><strong>3.시각화</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zOLlNf10QQKd6o2d.png" /><figcaption>코딩 없이 간단하게 촤라락 그려줍니다</figcaption></figure><p>Jupyter Notebook 등 다양한 노트북 제품 중 Zeppelin을 선택한 이유는 <strong>시각화</strong>때문이었습니다. 간단한 차트로 데이터들의 흐름을 빠르게 파악할 수 있습니다.</p><p><strong>노트북에 쿼리를 저장하면 분석한 관점이 쌓이고 노하우가 쌓입니다. 분석 과정을 공유해 서로에게 배우는 일은 더 큰 시너지를 일으킬 거에요.</strong></p><h4>3) 최종 빌런: 실제 DB에 적용하기</h4><ol><li><strong>Snapshot을 이용한 DB 복사본 접근</strong></li></ol><p>상용화 단계에서는 어떻게 하면 서비스에 영향이 가지 않는, 안정적인 접근을 열 수 있을지가 가장 중요했습니다. 처음에는 읽기 전용으로 계정을 분리하는 방법을 고려했는데, 복잡한 쿼리가 실행되어 서비스가 느려지는 경우를 막을 수는 없었습니다. 그래서 Snapshot을 이용해 Zeppelin이 복사본에 접근하도록 구현했습니다. 복사본이니 수정하거나 삭제하거나 익혀먹거나 서비스엔 아무 영향도 없습니다.</p><p>복사본 역시 실제 데이터로 민감한 부분들이 있습니다. 보안 그룹을 지정하여 사무실 밖에서는 접근할 수 없게 막아두고, Zeppelin에 계정을 생성해 로그인을 필수로 지정했습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*6sUVqZhnWTzP64v3W_o_Zw.png" /><figcaption>스냅샷을 생성하여 Zeppelin은 복사본에 쿼리를 보냅니다</figcaption></figure><p><strong>2. DB 복사본 생성 자동화</strong></p><p>Snapshot을 통해 복사본을 생성하고 Zeppelin 인스턴스를 구동하는 일이 반복적이었기 때문에, AWS Lambda(이하 Lambda)를 활용해 자동화했습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*zUNJve1JqhXra_Xpaao_tQ.png" /><figcaption>Lambda에서 botocore를 활용해 snapshot으로 복사본 DB를 구축하고 Zeppelin EC2를 실행했습니다.</figcaption></figure><p><strong>3. 출근 시 서버를 구축하고 퇴근 시 해체하도록 스케줄링하여 비용 절감</strong></p><p>데이터분석을 위해 추가적인 서버 스택을 운용하게 되었기 때문에 비용의 부담이 있었습니다. 해당 스택을 합리적인 수준에서 사용하기 위해서 출퇴근 시간에 맞춰 켜고 끌 수 있게 Cloudwatch와 Lambda를 연결했습니다. 상시 구동하는 것에 비해 25% 이하의 비용으로 운용할 수 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*5rpJ5JGRQ9GOKtWmi878sQ.png" /><figcaption>주중 10시면 Zeppelin 서버가 켜지고 복사본 DB가 생성됩니다.</figcaption></figure><p>매번 서버가 새로 구축되며 도메인이 바뀌기 때문에 그 주소를 공유하기 위해텔레그램봇을 이용했습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*vYKAM99DvFz22p-mvqPgiQ.png" /><figcaption>제플린 구동 후 텔레그램 봇이 Public DNS를 알려줍니다.</figcaption></figure><p>마지막으로 퇴근 시간에는 DB 복사본을 삭제하고 Zeppelin 인스턴스는 종료합니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*XIylf-q74sFw1r3fnFtHGw.png" /><figcaption>야근은 안돼요 다 꺼집니다</figcaption></figure><h3>이런 걸 한 번 기대해봅니다</h3><ol><li><strong>변화에 대한 빠른 파악</strong></li></ol><p>스냅샷을 구동하기 때문에 실시간은 아니지만 데이터에 대한 접근은 훨씬 용이해졌습니다. 변화하는 데이터를 더욱 능동적으로 감지할 수 있습니다. 개발자 이외에도 모두가 자주 들여다보고 변화에 더 기민하게 반응할 수 있게 될거에요.</p><p><strong>2. 문제 해결의 과정 공유</strong></p><p>OGQ는 같은 미션 아래 디지털 에셋을 판매하는 프로덕트를 여럿 개발하고 있습니다. 각기 다른 팀이 유사한 문제를 반복적으로 부딪힐 확률이 높죠. 어떻게 데이터를 분석했고 어떤 실행을 했는지 축적하면, 전사적으로 노하우가 쌓일 것입니다.</p><p><strong>3. 데이터에 기반한 의사결정</strong></p><p>팀에서 거의 모든 것을 결정하고 있기 때문에 굵직한 결정사항이 많습니다. 경험과 감각이 옳을 때도 있지만, 객관적인 커뮤니케이션에 데이터는 필수입니다. 왜 이 일을 해야하는지, 어떤 지표로 우리의 성과를 측정할지, 그리고 지금 우리가 잘하고 있는지 모두 데이터로 이야기할 수 있습니다. 연차, 직급, 직무 불문하고 가장 공정한 잣대입니다.</p><p>SQL 사내교육에 참여했던 한 기획자는 최근 DB에서 데이터를 가공하여 새로운 기능 추가의 근거를 마련했습니다. 일하면서 배우는 것보다 빠른 학습은 없다고 느낍니다. 실무에서 SQL과 데이터 분석이 차차 더 많이 등장하기를 바래봅니다.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce8601049d59" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What a Junior Developer Can Do to Get the Whole Team Involved with Data]]></title>
            <link>https://medium.com/analytics-vidhya/what-a-junior-developer-can-do-to-get-the-whole-team-involved-with-data-b8479df13e0d?source=rss-562e24a9c7b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8479df13e0d</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[zeppelin]]></category>
            <category><![CDATA[data-driven-decisions]]></category>
            <category><![CDATA[data-analysis-tool]]></category>
            <dc:creator><![CDATA[Soo Min Jeong]]></dc:creator>
            <pubDate>Tue, 10 Mar 2020 14:32:29 GMT</pubDate>
            <atom:updated>2020-03-12T08:20:18.109Z</atom:updated>
            <content:encoded><![CDATA[<h3>What a Developer Can Do to Get the Whole Team Involved with Data</h3><h3>Teaching SQL and Setting up Zeppelin</h3><p>Just like any other startup does, my team had to make tens of decisions every day. Quite often they were as trivial as where a button should go, sometimes as enormous as setting up a yearly KPI. When the talks get lukewarm, we could feel that we need a convincing argument based on numbers.</p><h4>The hidden gems of insights</h4><p>I collected and analyzed the data for decision-making since I was the only backend developer on the team. While I was sharing a statistical report every week, I witnessed how operators and UI designers had accurate predictions on the result without even looking at it. That led me to believe that those close to the end-users have better instincts on the user data. The following is how I took the belief into implementation for the last couple of months.</p><h4>What to overcome to share the access to the database</h4><p>I had to get over three obstacles; to teach non-developers the SQL syntax, to set up a data analytics tool for them, and to find a safe way to open the database not affecting our service.</p><h4>1) SQL seminar for non-developers</h4><p>I taught SQL to the Operations team and UI Development team for two hours a week. It took me 2 sessions to cover the basic SQL syntax focusing on SELECT queries and another 3 sessions to practice with real data.</p><p>I restored the snapshot of the master database, and we accessed the data with Sequel Pro. I provided with some assignments to solve the problems about the product (i.e. the number of those who joined the app last week, the number of images uploaded by the new users), and solved them all together in the next session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*OTYFQfwMCUYlij76w4uWhg.png" /><figcaption>Sequel Pro offers simple UI and easy installation</figcaption></figure><p>1W: the basic SQL syntax I (select, from, where, limit, order by, and, or, not)</p><p>2W: the basic SQL syntax II (join, group by, having, count, sum)</p><p>3W: the understanding of the database schema</p><ul><li>I explained where the data sets are located, especially the ones which the Operations team might be interested in.</li></ul><p>4W: the understanding of the statistics with SQL</p><ul><li>I shared the raw queries to yield weekly reports so that they could practice interpreting what they mean.</li></ul><p>5W: proving hypotheses</p><ul><li>I asked for some hypotheses the participants would like to prove with the data from the database. One was curious about the economic impact of being featured on our main page. It turned out to be more than 17 times of revenue in comparison with control groups.</li></ul><h4>2) Get the most out of teamwork with Apache Zeppelin</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/0*pGg5sG-diRk-NHR2.png" /><figcaption>Nope not this one</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLlgJPctM8FBbjq2_1YzwA.png" /><figcaption>Yup this one with two E’s</figcaption></figure><p>We enjoyed the interactive data analytics with <a href="https://zeppelin.apache.org/">Apache Zeppelin</a>. Here are why I chose it over anything else:</p><ol><li><strong>DRY with queries</strong></li></ol><p>Some of the main indexes (i.e. newly-joined social action, revenue, etc) are processed under the same query but only with a different date. I eliminated the redundant work by placing the variables on the top so that the teammates could easily adjust them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Sm8AkfOxhW6BsnKNyxwfQ.png" /><figcaption>The convenient markdown on Zeppelin</figcaption></figure><p><strong>2. Collecting a great variety of perspectives on the same dataset</strong></p><p>Saving queries means saving the perspectives on the data. When we encounter similar problems consecutively, the previous solutions are robust references for later on.</p><p>For example, we needed a key index to evaluate our project on launching the ‘cart’ feature. I went through some of the queries used to evaluate the ‘market’ feature so far, and I could come up with ‘the number of users who bothered to buy several contents within a minute <em>(due to the absence of cart)</em>’ by compounding the indexes there.</p><p><strong>3. Visualization</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zOLlNf10QQKd6o2d.png" /><figcaption>No code to be written for simple charts</figcaption></figure><p>The reason why I chose Zeppelin over any other products with a notebook (i.e. Jupyter Notebook) was the <strong>visualization</strong>. A simple chart offers you an upfront sense of the data flow.</p><p>The queries saved on the notebook show the team how one tried to solve or finally solved the problem. <strong>Sharing them on a notebook will boost the whole team to learn from each other.</strong></p><h4>3) Last but not least: Applying the project on a production level</h4><ol><li><strong>Restore a replica database with a snapshot</strong></li></ol><p>The biggest challenge was to figure out how to let non-developers access the database without losing any data or affecting the on-going service. I considered offering the read-only accounts in the first place. However, it cannot prevent the complicated queries from hindering the database ending up with getting the service slower. So, I simply restored a database from a snapshot only for data analytics.</p><p>Since it may hold some sensitive data, I restricted the access by registering the security group with the IP address of the office. Also, I set the configuration to go through authentication by default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*6sUVqZhnWTzP64v3W_o_Zw.png" /><figcaption>Zeppelin accesses only the replica not affecting the main database</figcaption></figure><p><strong>2. Automate restoring a database with a snapshot</strong></p><p>At first, I automated two tasks with AWS Lambda; setting up a replica database with the snapshot and starting an EC2 instance with Zeppelin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*zUNJve1JqhXra_Xpaao_tQ.png" /><figcaption>Lambda with botocore restores a replica DB with a snapshot and start an EC2 for Zeppelin</figcaption></figure><p><strong>3. Improving the cost-efficiency by running them only in the working hours</strong></p><p>Running another server stack for data analytics adds up some cost. To reduce it, I scheduled starting the servers every morning and shutting them down in the evening with Cloudwatch and Lambda. This way we could run them only with 25% of the cost of 24/7 server hosting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*5rpJ5JGRQ9GOKtWmi878sQ.png" /><figcaption>Every morning Lambda Sets up the Data Analytics Stack</figcaption></figure><p>When the domain changes due to running a new instance every morning, a Telegram bot sends the new public domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*vYKAM99DvFz22p-mvqPgiQ.png" /><figcaption>Telegram bot shares a new public domain</figcaption></figure><p>Lastly, when the working hours are over, the Lambda deletes the database and shuts down the instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*XIylf-q74sFw1r3fnFtHGw.png" /><figcaption>Do not stay late, or you will lose them</figcaption></figure><h4>Expectations Are Never Too High</h4><ol><li><strong>Quick notice on abnormality</strong></li></ol><p>Though the data in a snapshot is not in realtime, it is never worse than staying completely out of touch with the database. Now our team has a new crew to detect something different except for developers.</p><p><strong>2. Sharing the process of solving a problem</strong></p><p>We are running several products selling digital assets under the same mission for creators. The team on another product would likely bump into similar problems repeatedly. Collecting the methodology to solve the problem will be a precious heritage to look up.</p><p><strong>3. Data-driven Decision Making</strong></p><p>Data is a great first step when making a decision. Sometimes our instinct and experience may be a breakthrough but we all know they can be misleading. Data can show us why we should do it, how we can evaluate our achievement, and where we currently are. It is a fair standard regardless of the hierarchy or professional position.</p><p>One of the UI developers who took the SQL seminar collected data and processed it to bring a good reason why we should encourage users to report any inappropriate content on our app. I wish I could note such a clear argument more frequently on my team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8479df13e0d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/what-a-junior-developer-can-do-to-get-the-whole-team-involved-with-data-b8479df13e0d">What a Junior Developer Can Do to Get the Whole Team Involved with Data</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A one-year-old developer says, “I’m absolutely in love”]]></title>
            <link>https://soominjeongkr.medium.com/a-one-year-old-developer-says-im-absolutely-in-love-891f5e973df8?source=rss-562e24a9c7b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/891f5e973df8</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[jobs]]></category>
            <dc:creator><![CDATA[Soo Min Jeong]]></dc:creator>
            <pubDate>Wed, 06 Feb 2019 10:27:56 GMT</pubDate>
            <atom:updated>2019-12-23T07:14:14.625Z</atom:updated>
            <content:encoded><![CDATA[<h3>Officially been a year, I’m absolutely in love</h3><h4>Three reasons why I love my job</h4><h3>I name things</h3><p>It did surprise me to find out the most difficult job for developers: naming things. Coding is a journey of ‘divide and conquer’. We split a huge project into pieces and tell little minions to get those pieces done. Unfortunately yet unsurprisingly, these minions need names. Sometimes, names pop out of code. As a developer and entrepreneur, I have named quite a few things — a feature, a service, or even a company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mLKRjK3uHBpzZq7_.jpg" /><figcaption>Hey, you. No, not you. Not you, again!</figcaption></figure><p>I am not an artist; yet, I create things. Putting a little name tag makes me feel like giving birth to it. What kind of career would get you to name hundreds of things a day? A developer’s life shall do.</p><h3>It’s okay to be idle</h3><p>I’m not diligent, and for the first time in my life, I am not ashamed of it. Whenever I see an inefficient process of a project, it becomes my job. Every tiny mishap gives me a good reason to get back to my laptop and start coding. (Then the agony of naming haunts me again)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FV0bmISjyvHB59ix.jpg" /><figcaption>The input Steve Jobs loved.</figcaption></figure><p>If you are lucky enough, your laziness will lead you to a good point of pain. “I can’t reach the button with my thumb and don’t blame my short fingers. They are fine.” I do not need numbers or charts to convince the UX designers. I am good at being idle, and they agree with me.</p><h3>I don’t mind somebody looking at my screen</h3><p>It was a compliment when I said it looked cool to a designer. Well, at least I thought so. Her visualization skill led me to understand what she was doing within a few seconds. After a while, I realized that it could bother designers that someone was watching their screen behind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5UM98ToISuSPbZ_B.jpg" /><figcaption>When losing a battle, make your screen darker</figcaption></figure><p>Compared to designers, it takes a little longer to see what a developer is doing in a short time. I sit on an aisle at my office, but nobody tries to look into my screen (one exception: my boss). Another 10 points to my job.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=891f5e973df8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>