<?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 Ranadeep Bhuyan on Medium]]></title>
        <description><![CDATA[Stories by Ranadeep Bhuyan on Medium]]></description>
        <link>https://medium.com/@ranadeepbhuyan?source=rss-58bf5dccae69------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*o22Zlt5DPU2tGqp0IGHJoA.png</url>
            <title>Stories by Ranadeep Bhuyan on Medium</title>
            <link>https://medium.com/@ranadeepbhuyan?source=rss-58bf5dccae69------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 23:34:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ranadeepbhuyan/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[Computer science students for Brain tumour research and diagnosis]]></title>
            <link>https://medium.com/@ranadeepbhuyan/computer-science-students-for-brain-tumour-research-and-diagnosis-74ee9666bbf9?source=rss-58bf5dccae69------2</link>
            <guid isPermaLink="false">https://medium.com/p/74ee9666bbf9</guid>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[brain-tumor]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[research]]></category>
            <dc:creator><![CDATA[Ranadeep Bhuyan]]></dc:creator>
            <pubDate>Sun, 08 Jan 2023 08:06:09 GMT</pubDate>
            <atom:updated>2023-01-24T02:31:29.098Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/632/0*db9RFGYYUubPlAou.jpg" /><figcaption>Brain tumor imaging <a href="https://medium.com/u/23612bb108f9">Mayo Clinic</a></figcaption></figure><p>It can be gratifying for computer professionals to research brain tumours, as there are many ways in which computer science can be applied to the study and treat these conditions. For example, computer scientists and data scientists can develop algorithms and machine-learning models to help doctors better understand and predict the behaviour of brain tumours. In addition, computer professionals may be able to develop software and other tools to help doctors and researchers more effectively analyze medical images and other data related to brain tumours. Finally, computer professionals may be able to contribute to the development of new medical technologies, such as brain-computer interfaces and other assistive devices, to help people with brain tumours and other neurological conditions.</p><p>The prerequisites for brain MRI courses may vary depending on the institute and the course’s level. Generally, most institutes require applicants to have a medical degree (MBBS, MD, or equivalent) and some clinical experience. Some institutes may also require applicants to have completed a radiology residency or fellowship program. Additionally, most institutes will require applicants to pass an entrance exam or interview as part of the selection process. It is always best to check with the specific institute or program to determine the exact prerequisites for the course you are interested in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qBkjkc7oLsbpRtfp.jpg" /><figcaption>Gamma Knife — radiotherapy using gamma rays</figcaption></figure><p>Many organizations worldwide are dedicated to advancing our understanding of brain tumours and developing new treatments for the disease. Some of the top brain tumour research. The top 10 Brain cancer research organizations in the world — include:</p><ol><li>American Brain Tumor Association</li><li>Brain Tumour Foundation of Canada</li><li>Brain Tumour Charity (UK)</li><li>Children’s Brain Tumor Foundation</li><li>Cure Brain Cancer Foundation (Australia)</li><li>National Brain Tumor Society (US)</li><li>Pediatric Brain Tumor Foundation</li><li>The Brain Tumour Charity (UK)</li><li>The Cancer Council Australia</li><li>The Cancer Research Institute (CRI)</li></ol><p>These organizations are involved in a wide range of brain tumour research activities, including basic science research to understand the underlying causes of brain tumours, clinical trials to test new treatments, and population-based research to identify factors that may increase the risk of brain tumours. They also work to raise awareness of brain tumours and to advocate for policies that support brain tumour research and improve the lives of people affected by the disease.</p><p>Brain cancer data for research work -</p><p>There are several ways to collect data on brain cancer for research purposes, including:</p><ol><li>Clinical trials: Clinical trials are research studies that involve testing new treatments or interventions in humans. These studies often collect detailed data on the participants, including information on their diagnosis, treatment, and outcomes.</li><li>Registry studies: Cancer registry studies collect data on cancer incidence, prevalence, and outcomes in a defined population. These studies may be conducted at the national or international level and can provide valuable information on brain cancer trends and patterns.</li><li>Case-control studies: In case-control studies, researchers compare individuals with a particular disease (cases) to individuals without the disease (controls) and try to identify factors that may be associated with the development of the disease. These studies can be used to identify risk factors for brain cancer.</li><li>Cohort studies: Cohort studies involve following a group of individuals over time to assess the incidence of a particular disease or condition. These studies can be used to examine brain cancer risk factors and evaluate the effectiveness of different interventions.</li><li>Other methods: Other methods for collecting brain cancer data may include surveys, focus groups, and qualitative research methods such as interviews or focus groups.</li></ol><p>It is important to follow ethical guidelines when collecting data for research, including obtaining informed consent from participants and protecting their privacy. Suppose you are planning to research brain cancer. In that case, it is important to carefully plan your study and consult with relevant experts and stakeholders to ensure that your research is scientifically rigorous and ethically sound.</p><p>Sources for brain MRI images for research</p><p>There are several sources from which you can obtain brain MRI images for research purposes, including:</p><ol><li>Research institutes and hospitals: Many research institutes and hospitals have large collections of MRI images that have been collected as part of clinical studies or for other research purposes. These images may be available for use in additional research projects, subject to appropriate ethical and legal considerations.</li><li>Online repositories: Several online repositories provide access to MRI images for research purposes. Some examples include the National Institutes of Health’s National Library of Medicine and the Cancer Imaging Archive.</li><li>Commercial vendors: Several commercial vendors sell MRI images for research purposes. These vendors may have large collections of images that have been collected from a variety of sources.</li></ol><p>It is important to follow ethical guidelines when using MRI images for research purposes, including obtaining appropriate consent from the individuals whose images are being used and protecting their privacy. Suppose you are planning to use MRI images for research. In that case, it is important to carefully review the terms and conditions of use for the images you obtain and ensure that you have the necessary legal and ethical approvals.</p><p>Commercial vendors -</p><p>Several commercial vendors sell primary data sets of fMRI and MRI images for brain tumor research. Some examples include:</p><ol><li>Medybiz Pharma Intelligence</li><li>Market Data Forecast</li><li>Mordor Intelligence</li><li>Ken Research</li><li>Data Bridge Market Research</li></ol><p>It is essential to carefully review the terms and conditions of use for the data sets that you obtain from these or any other commercial vendors and to ensure that you have the necessary legal and ethical approvals in place before using the data for research purposes. It is also advisable to carefully evaluate the quality and reliability of the data being provided by any commercial vendor before purchasing and using it for research purposes.</p><p>Online repositories -</p><p>Several online repositories provide access to primary data sets of brain tumour MRI and fMRI images for research purposes. Some examples include:</p><ol><li>The Cancer Imaging Archive (TCIA): TCIA is a resource provided by the National Cancer Institute that contains a large collection of medical images, including brain tumour MRI and fMRI images, that have been collected as part of cancer research studies. Access to the data is free, but users must register and agree to the terms and conditions of use.</li><li>The Human Connectome Project (HCP): HCP is a research project funded by the National Institutes of Health that collects a large brain imaging dataset and other data from healthy volunteers. The dataset includes MRI and fMRI images of the brain and is available for use in research projects. Access to the data is free, but users must register and agree to the terms and conditions of use.</li><li>OpenNeuro: OpenNeuro is an open-access repository of neuroimaging data that the Center provides for Open Science. The repository includes a wide variety of brain imaging data, including MRI and fMRI images, and is available for use in research projects. Access to the data is free and does not require registration.</li></ol><p>It is important to carefully review the terms and conditions of use for the data sets that you obtain from these or any other online repositories and to ensure that you have the necessary legal and ethical approvals in place before using the data for research purposes. It is also advisable to carefully evaluate the quality and reliability of the data being provided by any online repository before using it for research purposes.</p><p>Here are a few suggestions for researchers or healthcare professionals that a computer science researcher may be able to collaborate with to learn more about brain MRI:</p><ol><li>Radiologists: Radiologists specialize in interpreting medical images, including MRI scans. Collaborating with a radiologist may be a good way to learn more about brain MRI and how it is used in the medical field.</li><li>Neurosurgeons: Neurosurgeons are doctors who specialize in surgery of the brain and nervous system. They may be able to provide insight into the use of brain MRI in surgical planning and treatment.</li><li>Neurologists: Neurologists are doctors who specialize in the diagnosis and treatment of disorders of the nervous system. They may be able to provide insight into the use of brain MRI in the diagnosis and management of neurological conditions.</li><li>Researchers at medical institutions: Many medical institutions have researchers who are studying brain MRI and other medical imaging techniques. Collaborating with these researchers may be a good way to learn more about the field.</li></ol><p>It is always best to approach potential collaborators with a clear idea of your research interests and how you believe a collaboration would be mutually beneficial.</p><p>Here are a few research institutes and hospitals in India that offer brain MRI courses:</p><ol><li>All India Institute of Medical Sciences (AIIMS) — Delhi</li><li>National Institute of Mental Health and Neurosciences (NIMHANS) — Bengaluru</li><li>Postgraduate Institute of Medical Education and Research (PGIMER) — Chandigarh</li><li>Christian Medical College — Vellore</li><li>Sree Chitra Tirunal Institute for Medical Sciences and Technology — Thiruvananthapuram</li><li>Jawaharlal Institute of Postgraduate Medical Education and Research (JIPMER) — Puducherry</li><li>Sanjay Gandhi Postgraduate Institute of Medical Sciences (SGPGIMS) — Lucknow</li><li>Tata Memorial Hospital — Mumbai</li><li>Institute of Human Behaviour and Allied Sciences (IHBAS) — Delhi</li><li>National Brain Research Centre (NBRC) — Manesar (Haryana)</li></ol><p>It is not necessarily the case that there is no way for you to learn about brain MRI as a computer professional. While it may not be possible for you to enroll in a brain MRI course or program without the necessary medical qualifications, there are other ways that you can learn about brain MRI and how it is used in the medical field. For example, you may be able to:</p><ol><li>Find online resources or courses that provide an overview of brain MRI and how it is used in the medical field.</li><li>Attend conferences or workshops related to brain MRI or medical imaging.</li><li>Collaborate with researchers or healthcare professionals who are working in the field of brain MRI.</li><li>Read articles and research papers on brain MRI and related topics.</li></ol><p>While these options may not provide the same level of in-depth training as a formal brain MRI course, they can still be a valuable way for you to learn more about the field and to gain a better understanding of how brain MRI is used in the medical field.</p><p>However, there are many ways to find researchers or healthcare professionals who may be interested in collaborating with you. Here are a few suggestions:</p><ol><li>Look for researchers or healthcare professionals who are working on projects related to brain MRI or medical imaging. You can search for their names and institutions online to find contact information.</li><li>Contact the research department or the department of radiology at a medical institution that offers brain MRI courses. They may be able to put you in touch with researchers or healthcare professionals who are working in the field.</li><li>Attend conferences or workshops related to brain MRI or medical imaging. This can be a good way to meet researchers and healthcare professionals who are working in the field and to learn more about their work.</li><li>Consider joining a professional society or organization related to brain MRI or medical imaging. These organizations often have directories of members who may be interested in collaborating on research projects.</li></ol><p>Overall, doing research on brain tumours as a computer professional can be very rewarding and can make a significant impact on the field of medicine. However, it is important to note that this type of research typically requires a strong foundation in both computer science and the biological and medical sciences, as well as collaboration with researchers and healthcare professionals who have expertise in these areas.</p><p>I am confident that computer professionals can make valuable contributions to research on brain tumours. There are many ways in which computer science can be applied to the study and treatment of brain tumours, including the development of algorithms and machine learning models to better understand and predict the behaviour of these tumours, the development of software and tools to analyze medical images and other data related to brain tumours, and the development of new medical technologies to help people with brain tumours and other neurological conditions. While it is true that research on brain tumours typically requires a strong foundation in both computer science and the biological and medical sciences, as well as collaboration with researchers and healthcare professionals who have expertise in these areas, the contributions of computer professionals can be extremely valuable and can make a significant impact on the field of medicine.</p><p>There are many conferences related to brain MRI and medical imaging that you may be able to attend online. Here are a few upcoming conferences that you may be interested in:</p><ol><li>The Annual Meeting of the Radiological Society of North America (RSNA) — This conference, which takes place in November, covers a wide range of topics in medical imaging, including brain MRI. It is typically held in Chicago, but due to the COVID-19 pandemic, the 2021 and 2022 meetings will be held virtually.</li><li>The International Society for Magnetic Resonance in Medicine (ISMRM) Annual Meeting and Exhibition — This conference, which takes place in April, is focused on magnetic resonance imaging (MRI) and covers a wide range of topics, including brain MRI. The 2021 and 2022 meetings will be held virtually.</li><li>The International Conference on Medical Image Computing and Computer-Assisted Intervention (MICCAI) — This conference, which takes place in September, covers a wide range of topics in medical image computing, including brain MRI. The 2021 and 2022 meetings will be held virtually.</li></ol><p>You can search online for other conferences and workshops related to brain MRI and medical imaging that may be available online. Many professional societies and organizations also offer webinars and other online events that may be of interest.</p><p>Here are a few upcoming conferences related to brain MRI and medical imaging that are taking place in India and Australia:</p><ol><li>The International Conference on Medical Image Computing and Computer-Assisted Intervention (MICCAI) — This conference will be held virtually in September 2021. It covers a wide range of topics in medical image computing, including brain MRI.</li><li>The International Society for Magnetic Resonance in Medicine (ISMRM) Indian Chapter Annual Meeting — This conference will be held virtually in December 2021. It is focused on magnetic resonance imaging (MRI) and covers a wide range of topics, including brain MRI.</li><li>The International Conference on Computer Vision, Imaging and Computer Graphics Theory and Applications (VISIGRAPP) — This conference will be held virtually in February 2022. It covers a wide range of topics in computer vision and medical imaging, including brain MRI.</li><li>The Australian and New Zealand Society of Magnetic Resonance (ANZSMR) Annual Scientific Meeting — This conference will be held in Adelaide, Australia, in September 2022. It is focused on magnetic resonance imaging (MRI) and covers a wide range of topics, including brain MRI.</li></ol><p>You can search online for other conferences and workshops related to brain MRI and medical imaging that may be taking place in India and Australia. Many professional societies and organizations also offer webinars and other online events that may be of interest.</p><p>It is generally not necessary to have specific medical qualifications to attend conferences related to brain MRI and medical imaging, as these conferences are typically open to a wide range of attendees, including researchers, healthcare professionals, and students. However, some conferences may have specific requirements for attendees, such as proof of academic or professional status, or may charge a registration fee. It is always best to check with the specific conference to determine the eligibility requirements and any fees that may apply. In some cases, it may be possible to attend conferences online as a virtual participant, which may allow you to access some or all of the conference proceedings and presentations without having to travel to the conference location.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74ee9666bbf9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brain tumour diagnosis and treatments]]></title>
            <link>https://medium.com/@ranadeepbhuyan/brain-tumour-diagnosis-and-treatments-5586932de5ec?source=rss-58bf5dccae69------2</link>
            <guid isPermaLink="false">https://medium.com/p/5586932de5ec</guid>
            <category><![CDATA[cancer]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[cancer-treatments]]></category>
            <category><![CDATA[brain-tumour]]></category>
            <dc:creator><![CDATA[Ranadeep Bhuyan]]></dc:creator>
            <pubDate>Sun, 08 Jan 2023 07:53:13 GMT</pubDate>
            <atom:updated>2023-01-08T07:53:13.128Z</atom:updated>
            <content:encoded><![CDATA[<p>Brain tumours are abnormal growths of the brain or central spinal canal cells. They can be cancerous (malignant) or non-cancerous (benign).</p><p>There are several types of brain tumours, including primary brain tumours, which originate in the brain, and secondary brain tumours, which are metastases that have spread from cancer in another part of the body. Primary brain tumours can be further classified according to the type of cell from which they originate, such as gliomas, meningiomas, and pituitary tumours.</p><p>Symptoms of a brain tumour may include headache, nausea and vomiting, seizures, changes in vision or speech, weakness or numbness in the limbs, and changes in behaviour or personality. These symptoms may be caused by the pressure of the tumour on the brain or by the tumour’s interference with the brain’s normal function.</p><p>Diagnosis of a brain tumour may involve:</p><ul><li>A combination of physical examinations.</li><li>Neuroimaging tests such as CT scans or MRI scans.</li><li>Biopsy.</li></ul><p>A biopsy is a procedure in which a sample of tissue is removed from the suspected tumour and examined under a microscope to determine whether cancer cells are present.</p><p>Treatment of a brain tumour may include surgery to remove the tumour, radiation therapy, and chemotherapy. The specific treatment plan will depend on the type and location of the tumour, as well as the patient’s overall health.</p><p>It is important to note that brain tumours can be serious and can have significant effects on a person’s quality of life. However, with early diagnosis and appropriate treatment, many people with brain tumours are able to live long and productive lives. If you are concerned about the possibility of a brain tumour, it is essential to speak with a healthcare professional for a proper evaluation.</p><p>There are several methods for detecting and diagnosing brain cancer, including:</p><ol><li>Physical examination: A doctor may examine the patient for signs and symptoms of brain cancer, such as headaches, nausea, and changes in vision or speech.</li><li>Neuroimaging tests: These tests, such as computed tomography (CT) scans and magnetic resonance imaging (MRI) scans, create detailed brain images and can help doctors identify abnormalities such as tumours.</li><li>Biopsy: A sample of tissue from the suspected tumour is removed and examined under a microscope to determine whether cancer cells are present.</li><li>Other tests: Other tests, such as angiography (which uses X-rays to create images of blood vessels) and electroencephalography (which records the brain’s electrical activity), may also be used to help diagnose brain cancer.</li></ol><p>Once brain cancer is diagnosed, it is typically classified according to the type of cell from which it originates. The most common types of brain cancer are:</p><ol><li>Gliomas: These tumours originate from the glial cells, which support and protect the nerve cells in the brain.</li><li>Meningiomas: These tumours arise from the membranes that surround the brain and spinal cord.</li><li>Pituitary tumours: These tumours originate from the pituitary gland, a small gland located at the base of the brain that produces hormones.</li><li>Schwannomas: These tumours arise from the cells that produce the insulation around nerve fibres.</li><li>Primary lymphoma of the brain: This type of cancer affects the immune system and can occur in the brain.</li></ol><p>Glioblastoma multiforme (GBM) is a type of brain cancer that is usually diagnosed using a combination of physical examination, neuroimaging tests, and biopsy.</p><p>During a physical examination, a doctor may look for signs and symptoms of GBM, such as headaches, nausea, vomiting, and changes in vision or speech. These symptoms may be caused by the pressure of the tumour on the brain or by the tumour’s interference with the brain’s normal function.</p><p>Neuroimaging tests, such as computed tomography (CT) scans and magnetic resonance imaging (MRI) scans, can create detailed brain images and help doctors identify abnormalities such as tumours. These tests may be used to confirm the presence of a brain tumour and to determine its size and location.</p><p>A biopsy is a procedure in which a tissue sample is removed from the suspected tumour and examined under a microscope to determine whether cancer cells are present. A biopsy is usually the most accurate way to diagnose GBM and determine the specific type of brain cancer present.</p><p>GBM is usually diagnosed after a combination of these tests has been conducted. If you have any further questions about the diagnosis of GBM, please don’t hesitate to ask.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5586932de5ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Honey bee and my first day at high school]]></title>
            <link>https://medium.com/@ranadeepbhuyan/honey-bee-and-my-first-day-at-high-school-d305358db317?source=rss-58bf5dccae69------2</link>
            <guid isPermaLink="false">https://medium.com/p/d305358db317</guid>
            <category><![CDATA[fiction]]></category>
            <category><![CDATA[india]]></category>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[high-school]]></category>
            <category><![CDATA[schools]]></category>
            <dc:creator><![CDATA[Ranadeep Bhuyan]]></dc:creator>
            <pubDate>Thu, 29 Dec 2022 05:24:38 GMT</pubDate>
            <atom:updated>2022-12-29T05:28:52.954Z</atom:updated>
            <content:encoded><![CDATA[<p>It was a great sunny winter morning in January, a perfect day for cycling. I was riding my nice new blue-coloured second-hand bicycle purchased by my father at a much lesser price. My newly introduced ‘regular’ school companion Jivan Gogoi accompanied me through a narrow gravelled road amidst lush green tea gardens on both sides. After thirty years, I thank God for the weight I had carried compared to my daughter’s school bag. I had a much lighter one on my back that day while enjoying the bi-cycle ride with a lot of excitement mixed with fear and nervousness about going to high school.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/0*ZsklzuS_NPi39FQE" /></figure><p>There was a funny story behind the cycle, which I will brief you on, along with my first school day. My bag was lighter also because I carried only half of the books. You may be thinking about the first day before getting into the school and how I got half of the books. I was born with the privilege of a family of school teachers like both of my parents.</p><p>The strong fragrance of processed English breakfast blended tea from the Dinjoy tea factory made me wonder about its source. Jivan was riding a few metres ahead of me. We crossed the passage between the factory and the rows of tall eucalyptus trees. The mixed aroma was so strong that I started looking for the source of it, forgetting about my beating heart on the first school day for a few moments while riding my little blue cycle.</p><p>The preparation for the first day started a month back, purchasing school uniforms, supplies, and collecting used books from seniors in the community. My mom collected all the necessary pieces of stuff before I realised I would need any of it. She reached out to elderly and senior students like Jivan to go to school together with me. Jivan was promoted from class eight to nine when I started from five, my first year in Dinjoy high school. I was not very lucky in choosing a school due to the privilege of my mother being a teacher in a primary school and my father in a high school. It was just a transfer from my mother’s school to my father’s, where they were employed. Nearby schools in our neighbourhood were where most of my childhood playmates went. My younger brother and I had eventually gone to the Dinjoy school, which was four kilometres away from our home.</p><p>However, we purchased the blue bicycle two days earlier from my first day at school, from one of our bangoli neighbours. The son of that neighbour was my age, ‘Bimal’, who bought the cycle with stolen money from his mother’s kitty. I continued using that cycle for the next three years till my brother reached grade five to join our cycle ride to school every day like the first day.</p><p>Half bicycle ride, generally kids learned from their elders, like father’s or uncle’s cycles which were much taller than the kid’s cycles. We never used to spend money on toys or baby bicycles either. So, the only way to learn cycling is to ride the adult’s cycle from the steel frame below the seat. So, my younger brother and I learned straightway from my fathers’ taller bicycle. We could not reach the paddle if we sat on it. So we used to ride off the seat from below. That sounded like a circus to my colleagues and friends in Europe or in the Americas nowadays. I used to walk to school in the primary. My father realised a bit late that he had to take me on his cycle every day now because of the distance, well, that was my and my mother’s assumption til the day I saw the new blue bicycle all of a sudden in our courtyard two days before my high school. I told my mother that it looked like Bimal’s cycle, but he still did not know to ride it. The sun was about to set when the cycle was home, which was about the right height for me. Since I knew half-bi-cycle riding, it took only two hours to learn to ride it on the seat. It was dark in the evening, but I still cherish that wow moment just two days before my first high school day. The next day early morning, I woke up with excitement and went to practice on the cycle. That’s when I saw Bimal on the road.</p><p>His face revealed his discomfort when he saw me riding his cycle and threw a bunch of vague questions to me that I never tried to find an answer to. His father sold it to my father cause he did not learn to ride a bicycle, and he stole money from their home kitty. Well, that was my only self-consolation to overcome that guilt and look at his eyes. I started playing with him and going to his home to play a few days later to overshadow my regret and make him forget about the cycle. Later my mother nicely scolded me for my new friendship with Bimal, who seemed not a ‘so decent’ boy according to her, who was hardly aware of my childhood guilt.</p><p>I was riding rather slowly that day and was trying to remember the route back home. I followed Jivan’s cycle’s tire marks, through the same trails on the dried mud of road, and he probably slowed down because I rode a bit slower than his usual speed. After all, I recently learned to ride a bicycle. I remember I was much shorter and smaller compared to Jivan, also the height of my cycle compared to his. Knowing I was a new learner, Jivan rode slower that day and allowed his other friend to cross by our side and introduced me to all of his friends throughout the ride.</p><p>After some time, we entered the school premises, probably the second time I was entering there. The first time was during the written entrance exam for admission to the same school. Yes, education was not accessible for all at that time in India, so kids who cleared maths and language tests could get into a good school like this one. My father carried me on his bicycle on the day of the admission test.</p><p>Finally, we reached the boy’s cycle stand. I parked my cycle near Jivan’s cycle where all the senior boys used to park. I was still determining where I shall go from the bicycle stand. Jivan guided me to section C of the fifth grade. I felt much better to see the school has cement walls and polished concrete floors compared to my primary (mother’s) school. I made some quick friends in the first row since I reached much early and managed to grab a seat in the first row. ‘Bul’ (aka Kesa) and ‘Euty’ (UT) are the first two friends I made on the first day. More than half of the students in the class were from the same primary school as Dinjoy gaon(village). They informed me that ‘Kerani sir’ would be our class teacher, and he would teach the Assamese language.</p><p>Everyone was excited and cherished. I took a while to mingle, and I was the only one from my primary school, probably because of the distance. Kerani-sir came in with a slow elephant walk and took his seat. The first thing he asked was, “who is the son of Bhuyan-sir?’’ My father was his fellow teacher in the school, and he knew I must be in the class that day. I stood up and replied with a shy smile on my apple red face., “It’s me, sir”. Probably that’s the second most popular identity of mine at school as the ‘son of Bhuyan’ sir sometimes for all students and teachers, “bhuyan siror pootek” for many years afterwards.</p><p>The class started with Kerani sir, and he randomly asked a student to read the first chapter of the Assamese language book. We all may forget what he taught in school but we still remember him, especially his eyes through his high powered lenses. Bul and UT have been chatting all the time throughout the class. There was a beehive outside of our class in the backyard. There were at least three or four bees flying in the class. Few kids were as scared of them as I. I tried to shoo away one of them with my notebook towards my right side. Unfortunately towards the girl’s rows in the class. I was not sure if Kerani sir noticed those bees through his lenses, but he definitely saw me trying to throw a notebook to someone towards the girl’s rows in the class. He asked me “hello boy, what happened?”. I replied to him “mou maakhi sir”, a honey bee! The class rolled over a loud laughter. The way everyone laughed was too awkward for me. I did not realise why so many of the students laughed, at that time!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/0*cU6zKhwbv4NAvOQv" /></figure><p>Generally on the first day at school, there is a very high probability that you can get a nickname in the school throughout your education life. That was true for me; I got two names that day — “Mou maakhi” and “Bhuyan siror pootek”. The first one “Mou maakhi” was so popular to pull my legs among all classes including seniors in the school that even today as well, when I meet my old school buddies many of them use that nickname to pull me off.</p><p>Grade five section C had another kid of another teacher from our school, and I got to know much later after a few months of my naming ceremony on the first day in class. She was none other than the girl I tried to shoo away with my notebook, as that naughtily honey bee “Mou maakhi” flew away from me towards her. I kept thinking about what was there in that name for many months. To my surprise, she was the reason for the entire class’s laughter that very first day because she was none other than Kerani-sir’s daughter, who joined my class on that day. I am dedicating this story to those who still do not know about it.</p><p>Thank you,</p><p>Ranadeep Bhuyan</p><p>NB: Published in my school’s 75th anniversary souvenir.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d305358db317" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Resiliency: two alternatives for fault tolerance to deprecated Hystrix]]></title>
            <link>https://medium.com/quickbooks-small-business-and-self-employed/resiliency-two-alternatives-for-fault-tolerance-to-deprecated-hystrix-de58870a8c3f?source=rss-58bf5dccae69------2</link>
            <guid isPermaLink="false">https://medium.com/p/de58870a8c3f</guid>
            <category><![CDATA[fault-tolerance]]></category>
            <category><![CDATA[netflix]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[alibaba]]></category>
            <dc:creator><![CDATA[Ranadeep Bhuyan]]></dc:creator>
            <pubDate>Thu, 20 Feb 2020 18:44:04 GMT</pubDate>
            <atom:updated>2020-06-22T15:57:24.161Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Pisa tower, is still standing despite of a fault in the foundation." src="https://cdn-images-1.medium.com/max/1024/1*nIkHy1RyKjSR3FvBzdl9Ew.png" /></figure><h3>What is fault tolerance?</h3><p>A <strong>fault-tolerant design</strong> enables a system to continue its intended operation, possibly at a reduced level, rather than failing completely, when some part of the system fails. It is the ability of maintaining functionality when portions of a system break down is referred to as <strong>graceful degradation.</strong></p><p>Dealing with unexpected failures is one of the hardest problems to solve, especially in a distributed system. Resiliency is the ability to recover from failures and continue to function. The goal of resiliency is to return the application to a fully functioning state after a failure. <a href="https://martinfowler.com/bliki/CircuitBreaker.html">Circuitbreaker</a> is the primary design pattern that is followed to solve this problem.</p><h3>A quick look on what we get</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KNXKabhGdAsm98fDSIk4pw.png" /><figcaption>Comparison of 3 popular libraries: Hystrix, Sentinel and Resilience4j</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*NKGpHPBNC91PzDakoR_fhg.png" /><figcaption>Is your system fault tolerant?</figcaption></figure><h3>Hystrix</h3><p>Hystrix is (was) a very popular fault tolerance library for server side engineering. <strong>It</strong> handles resiliency effective in the micro services world that developed and maintained by Netflix. However, it is now in <strong>maintenance mode </strong>and no one is going to release any updates as of today. Interested community members are requested to reach out <a href="/service/mailto:hystrixoss@googlegroups.com">hystrixoss@googlegroups.com</a> take ownership of Hystrix for moving back into active mode.</p><p>However, that gave everyone in the community to explore other available libraries that are being maintained and have a strong back. I happen to study and evaluate a couple of other options viz <a href="https://github.com/alibaba/Sentinel"><strong>Sentinel</strong></a> and <a href="https://github.com/resilience4j"><strong>Resilience4j</strong></a> and going to compare them comprehensively so that the community get benefited by taking faster decision on their choices.</p><h3>Circuit-breaker</h3><p>Let’s quickly look at the Circuitbreaker pattern and how Hystrix implements it. The circuit (an object) has three states in operation.</p><ul><li><strong>Closed — </strong>Allow the remote Connection through</li><li><strong>Open — </strong>Break the remote connection</li><li><strong>Half-open </strong>— Allow Limited Number of connection to Test (aka <strong>Limited Closed</strong>)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*ghWnFiWveSmAfq9M.png" /><figcaption>A Circuit breaker pattern: States transition</figcaption></figure><p>Hystrix calls to the external world has to be wrapped with <strong>HystrixCommand</strong> annotation. It do supports spring-boot annotation. As follows -&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*Sk6kXCaub7nhPc8dhIzSjQ.png" /><figcaption>Hystrix Implementation on Spring boot 2</figcaption></figure><p>After that, all are based on the command aspect or in that context with code and configurations. <strong>Resilience4j,</strong> in contrast provides higher-order functions (decorators) to enhance any functional interface, lambda expression or method reference with a Circuit Breaker, Rate Limiter or Bulkhead. Furthermore, the library provides decorators to retry failed calls or cache call results. That means, we can combine a Bulkhead, RateLimiter and Retry decorator with a CircuitBreaker decorator. The advantage is that we have the choice to select the decorator.</p><p>Hystrix and other two libraries emit a stream of events that are useful to system operators to monitor metrics about execution outcomes and latency.</p><p>Semantically, Hystrix has configurations in the code therefore is it tightly coupled with the HystrixCommand callback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*IxQyUJAAVw6UwqGaSzoXtg.png" /><figcaption>Side by Side: Resilience4j provides Yaml based configurations</figcaption></figure><p>One interesting difference in <strong>resilience4j</strong> is ability to add multiple fault tolerance features into one call as below. At the end of the day it is more configurable and amount of code needs to be written is less with right amount of abstractions.</p><pre>@CircuitBreaker(name = BACKEND, fallbackMethod = &quot;fallback&quot;)<br>@RateLimiter(name = BACKEND)<br>@Bulkhead(name = BACKEND)<br>@Retry(name = BACKEND, fallbackMethod = &quot;fallback&quot;)<br>@TimeLimiter(name = BACKEND)<br>Public String postCallProxyES(...) {<br>      ... . .. <br>} </pre><blockquote><strong>The default Resilience4j Aspects order is the following:</strong><br>Retry ( CircuitBreaker ( RateLimiter ( TimeLimiter ( Bulkhead ( Function ) ) ) ) )</blockquote><p>If we need a different order then we can use the functional chaining style instead of the spring annotations style.</p><h3>Sentinel vs Resilience4j</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*ZtFx0WH-G3ezIK7Aa8mwTw.png" /><figcaption>Spring-boot 2: Sentinel from Alibaba</figcaption></figure><p>Sentinel has the same syntax too. The primary difference with Resilience4j is the granularity of control and ability to be integrated with other live monitoring systems. Therefore I would prefer Resilience4j over it.</p><p>Sentinel has its own dashboard module. It assumes it will run in a distributed multi clustered environment always, therefore it comes with a baggage of dependencies no matter we need it or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*F2m4qN8NYmItAAMugibzgg.png" /><figcaption>Observability tool: Sentinel dashboard module</figcaption></figure><p>Functional java example</p><pre>Supplier&lt;String&gt; decoratedSupplier = CircuitBreaker<br>    .decorateSupplier(circuitBreaker, backendService::doSomething);<br><br>String result = Try.ofSupplier(decoratedSupplier)<br>    .recover(throwable -&gt; &quot;Hello from Recovery&quot;).get();</pre><pre>//Execute the decorator</pre><pre>String result = circuitBreaker<br>  .executeSupplier(backendService::doSomething);</pre><p>Reactive java example</p><pre>@Bean<br>public CircuitBreaker ipServiceCircuitBreaker() {<br>    CircuitBreakerConfig config = CircuitBreakerConfig.custom()<br>            .waitDurationInOpenState(Duration.ofMinutes(5))<br>            .ringBufferSizeInClosedState(100)<br>            .ringBufferSizeInHalfOpenState(30)<br>            .failureRateThreshold(10)<br>            .build();<br>    return CircuitBreaker.of(&quot;ipService&quot;, config);<br>}</pre><p>Core modules</p><h3>Core modules:</h3><ul><li>resilience4j-circuitbreaker: Circuit breaking</li><li>resilience4j-ratelimiter: Rate limiting</li><li>resilience4j-bulkhead: Bulkheading</li><li>resilience4j-retry: Automatic retrying (sync and async)</li><li>resilience4j-cache: Result caching</li><li>resilience4j-timelimiter: Timeout handling</li></ul><p>Hystrix is a more matured product and proven through time. Compared to Sentinel, Resilience4j is new however, looks more promising as it tries to culminate some of the goodnesses from both of them.</p><h3>Resiliency for nodeJS apps</h3><p>Good news is that <a href="https://www.npmjs.com/package/hystrixjs">HystrixJS</a> is not managed by Netflix. It is one of the very popular npm modules among nodeJS developers. It uses RxJS.</p><pre>var hystrixConfig <strong>=</strong> require(&#39;hystrixjs&#39;).hystrixConfig;</pre><pre><strong>if</strong> (localEnv) {</pre><pre>hystrixConfig.init({</pre><pre>&quot;hystrix.circuit.volumeThreshold.forceOverride&quot;<strong>:</strong> true,</pre><pre>&quot;hystrix.circuit.volumeThreshold.override&quot;<strong>:</strong> 0</pre><pre>});}</pre><p>The library provides a module <a href="https://bitbucket.org/igor_sechyn/hystrixjs/src/cba4b540569223b3173da3eb9bdfe7a1376b7586/src/http/HystrixSSEStream.js?at=master">HystrixSSEStream</a> to export gathered metrics as a server side events stream.</p><pre>var hystrixSSEStream <strong>=</strong> require(&#39;hystrixjs&#39;).hystrixSSEStream;</pre><pre>function hystrixStreamResponse(request, response) {</pre><pre><strong>return</strong> hystrixSSEStream.toObservable().subscribe(</pre><pre>function onNext(sseData) {</pre><pre>response.write(&#39;data: &#39; <strong>+</strong> sseData <strong>+</strong> &#39;\n\n&#39;);</pre><pre>},</pre><pre>function onError(error) {</pre><pre>console.log(error);</pre><pre>},</pre><pre>function onComplete() {</pre><pre><strong>return</strong> response.end();</pre><pre>});};</pre><h4>Observability with Resilience4j</h4><p>Well, there is a plethora of choices to exactly log and see what is happening to the integration. It took me two days to decide on what my team should learn and use.</p><blockquote>Resilience4j provides in-built micrometer-core (unlike hystrix added the whole of the library with many dependencies) support with a bunch of useful metrics in it such as <strong>State of the circuit, slow call rates, failed rates, retry matrices </strong>etc. [<a href="https://resilience4j.readme.io/docs/micrometer">https://resilience4j.readme.io/docs/micrometer</a>]</blockquote><pre>MeterRegistry meterRegistry = new SimpleMeterRegistry();<br>CircuitBreakerRegistry circuitBreakerRegistry =<br>  CircuitBreakerRegistry.ofDefaults();<br>CircuitBreaker foo = circuitBreakerRegistry<br>  .circuitBreaker(&quot;backendA&quot;);<br>CircuitBreaker boo = circuitBreakerRegistry<br>  .circuitBreaker(&quot;backendB&quot;);<br><br>TaggedCircuitBreakerMetrics<br>  .ofCircuitBreakerRegistry(circuitBreakerRegistry)<br>  .bindTo(meterRegistry)</pre><p>That’s it! This will register all available metrics to Micrometer event registry.</p><blockquote>However, there is no way we could view those metrics without doing anything.</blockquote><p>Couple of easy approaches are mentioned as below — in-order to view those exported metrics.</p><p><strong>Pull based metric</strong></p><p>Micrometer -&gt; Prometheus -&gt; Grafana</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zuqFPUKdh2azwCCbRSuNvw.png" /><figcaption>The States of the circuit breaker: Micrometer-&gt;Prometheus-&gt;Grafana</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TCBlK8agrEehVlRRP3P7Kg.png" /><figcaption>Retry metric for an external service: Prometheus endpoint consumed by Grafana server.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YYjKxPn1uwbNy7UTLEN41g.png" /><figcaption>Elastic Search endpoint is protected by Resilience4j.Bulkhead</figcaption></figure><p>In this case, micrometer.io (spring-boot) library creates logs based on configurable metrics. There are a couple of ways that can expose this data out from the application server. One idea is to run an agent like Splunk or AppDynamics like a side application and push the data to their respective logging services.</p><p><strong>Event-based metric</strong></p><p>Micrometer -&gt; Vert.x -&gt; telegraph -&gt; wavefront</p><p>Below example the circuit breaker events are captured by micrometer and formatted by Prometheus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dp0pd7xNq8K9vi6oWPSORg.png" /><figcaption>Wavefront dashboard: Resilience4j.bulkhead [and External call to an Elastic search is caped at a point]</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*LtLlMghw_vPMK8Bt7YHtCg.png" /><figcaption>Wavefront in Kubernetes: overall utilization</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de58870a8c3f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quickbooks-small-business-and-self-employed/resiliency-two-alternatives-for-fault-tolerance-to-deprecated-hystrix-de58870a8c3f">Resiliency: two alternatives for fault tolerance to deprecated Hystrix</a> was originally published in <a href="https://medium.com/quickbooks-small-business-and-self-employed">QuickBooks Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enterprise Cloud Operations and Governance]]></title>
            <link>https://medium.com/quickbooks-small-business-and-self-employed/enterprise-cloud-operations-and-governance-fdb614919cc5?source=rss-58bf5dccae69------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdb614919cc5</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[organization]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[operations]]></category>
            <dc:creator><![CDATA[Ranadeep Bhuyan]]></dc:creator>
            <pubDate>Mon, 10 Feb 2020 08:42:23 GMT</pubDate>
            <atom:updated>2020-02-10T08:42:23.134Z</atom:updated>
            <content:encoded><![CDATA[<p>A case study on cloud security.</p><p>Many customers start by creating separate cloud (google, aws, azure etc) accounts for each environment (dev, pre-prod, prod etc) for each application. This helps create a strong separation between all resources in each account. However, this approach can create great operational challenges.</p><p>Let’s imagine an enterprise organisation with 1000+ service teams that are hosted on cloud. A centrally managed organisation with a bunch of tools and automation processes helps cloud ops to centrally manage billing, control access, compliance, security and share resources across many AWS accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EbG0Yw_oQgaTDTjPkMP_lg.png" /><figcaption>A cloud organisation with many environments and many applications</figcaption></figure><p>This blog is going to throw some light on how cloud Ops teams manage all of those thousands of cloud accounts and 100s of resources in each accounts using two simple use cases. Also we will understand, why it is very important for organisation and for their customers. In the end, I will share one learning from a devops standpoint and share a few links to some of the best practices.</p><p><strong>The “Capital One” Use case:</strong></p><p><a href="http://suspect%20allegedly%20found%20and%20exploited%20a%20misconfigured%20waf%20%28web%20application%20firewall%2C%20a%20type%20of%20cloud%20service%29%20to%20access%20capital%20one%E2%80%99s%20vpc%20%28virtual%20private%20cloud%29.%20once%20inside%2C%20she%20launched%20an%20ec2%20instance%20to%20trick%20the%20aws%20metadata%20service%20into%20trusting%20it%2C%20thereby%20receiving%20credentials%20to%20access%20and%20decrypt%20data%20stored%20in%20an%20s3%20bucket./">Capital One Data theft of 106M customers</a>: <strong>A misconfigured cloud resource (WAF) caused the cloud security failure</strong></p><p>WAF (web application firewall) is a type of cloud security service to access one’s VPC (virtual private cloud) resources.</p><p>If any EC2 (elastic cloud compute, a unix/windows box in the cloud) is open to accept incoming traffic from 0.0.0.0/* IP range then it allows internet traffic to the EC2. Generally, WAF rules can be configured prevent 0.0.0.0/* to reach to any resource in the VPC. At a lower level at least a security group can be added to filter incoming traffic. The suspect twitted about the brag.</p><p>The hacker twitted after she took a dump of all customer data using their S3 and aurora DB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*TlaBpFIy-5XReaaYN8DBsA.png" /></figure><p>Once inside, she launched an EC2 instance to trick the AWS Metadata Service into trusting it, thereby receiving credentials to access and decrypt data stored in an S3 bucket.</p><p>This incident created paranoia across industry and suddenly bringing in lots of focus to these cloud services settings and configurations.</p><h3>How to prevent this from happening?</h3><p>Security and Compliance is a shared responsibility between cloud infra providers (aws) and the customer (consumer company). It is commonly referred to as <strong>Security “of” the Cloud</strong> versus<strong> Security “in” the Cloud.</strong></p><p>Example from AWS cloud: for centralised governance, billing, security policies etc. through aws organization.</p><p>A master account service that gives a centralised control to all of resources that is owned by a company.</p><p><strong>Security, compliance and governance Policies:</strong></p><p>Do you see those emails from your cloud operations team?</p><p>with a message like “Policy Violated — Action needed”</p><p>Cloud security team notifies regularly about any misconfiguration</p><p>This is a security framework published by the Center for Internet Security as the foundation of your security policy library, to expedite your time-to-value and achieve consistent configurations across your cloud footprint.</p><p><strong>AWS Organization</strong></p><p>A lot of things goes on continuously behind the scene.</p><p>Fundamental unit of an accounts is called <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_ous.html"><em>Organizational Unit (OU)</em></a>. OUs allow the ability to arbitrarily group accounts and other OUs together so that they can be administered as a single unit. <em>A Service Control Policy (SCP) </em>is applied to an OU. These policies can describe the access and resource restrictions for the OU. A <strong>root</strong> is a top-level parent node in the hierarchy of an <strong>organisation</strong> that can contain <strong>organisational</strong> units (OUs) and accounts. A <strong>root</strong> contains every <strong>AWS</strong> account in the <strong>organisation</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hWdn5W7bVvoMgYQx7Kn8vg.png" /><figcaption>OUs accounts and managed by a root in an aws organization</figcaption></figure><p><strong>Product:</strong> Assets which form part of the Product or support the Product in some way. The things you want to build.</p><p><strong>Core: </strong>These assets are perhaps less obvious, but are just as important. They are the <em>supporting cast</em> to your Product.</p><p><strong>Use of automation to avoid mistakes</strong></p><p>A governing cloud can be created using CLI</p><pre>create-gov-cloud-account<br>--email &lt;value&gt;<br>--account-name &lt;value&gt;<br>[--role-name &lt;value&gt;]<br>[--iam-user-access-to-billing &lt;value&gt;]<br>[--cli-input-json &lt;value&gt;]<br>[--generate-cli-skeleton &lt;value&gt;]</pre><p>Create a security policy -</p><pre>aws organizations create-policy --content ~/org/policies/waf-policy.json --name AllowAllS3Actions, --type SERVICE_CONTROL_POLICY --description &quot;Allows delegation of all S3 actions&quot;</pre><h3>A hypothetical “Production incident” use case:</h3><p>The incident:</p><p>Customers were unable to view their attached images from a public CDN URLs in their attached documents.</p><p>It was a controlled traffic therefore the blast radius was very small and spread was slow. Those customers were not able to view their uploaded logos on invoices, and other financial documents as well. Documents such as Invoices are viewed from many different places such as emails, customer’s viewing portal, within also within the main product, HTMLs/PDF etc. For some reason customers logos from cdn go missing in all of those places where they could have viewed an Invoice and other customer docs.</p><p>We did not have pager or alerts on cdn urls. The care team got to know this first when annoyed customers started sending messages over VOC/emails. By the time we fix the problem it was 10+ hours. Not a happy situation at all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iwo-TurBZsoBF9jgETjZLg.png" /><figcaption>The document image processing is a micro service and it is on a server-less architecture.</figcaption></figure><p>Historically, the micro service was using a single AWS account for development, pre-production and production environments separated via aws tagging. One main reason is being AWS cost optimisation the org wanted to manage lesser accounts. But that’s not the issue. Another caveat, the AWS account was created with a pre-production tagged on it. That implied to — the logo service was running on pre-production account, from the cloud operations perspective.</p><p>The service creates a reference to a CDN URLs for viewing the logos in the emails/invoices/other places. On that fine day morning a new security policy (WAF rule) was created and applied to block any traffic from outside office intranet for all pre-production accounts including all resources based on the account tag.</p><p><strong>Best practices</strong></p><p>By now you may have co-related both use cases and understood both cases were because of not following best practices. Automation to enforce and automatic detection and remediation is the key to reduce the vulnerability window. Regular communication of changes, alerts on production traffics helps minimise friction and failed customer experiences and outages. Every day a new set of security vulnerabilities are uncovered, making development teams aware of those and their remediation helps such outages and preventing any kind of breaching into private networks. All resources in a cloud account needs to tagged properly with an organisational standard policy. Resources Those belongs to prod and development needs to be tagged so that root is aware of what WAF to be applied.</p><p>A right organisational <a href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">tagging strategy</a> makes a difference how we govern our accounts and resources in it. In the beginning, we may start with multiple environments from one account such as production database and production database, if the organisation tagging policy is designed right for those requirements and notifying for the same to teams makes a great deal.</p><p><strong>Reference:</strong></p><p>I found a bunch of materials among them AWS <a href="https://aws.amazon.com/answers/account-management/">documentation on account management</a> is one of the best ones. There is a <a href="https://cloudacademy.com/learning-paths/aws-governance-compliance-39/">course on governance and compliance</a> — seems good.</p><p>One best practice blog of separating <a href="https://blog.codeship.com/separate-aws-production-and-development-accounts/">development and production</a> accounts.</p><p>Not in AWS? no issues, each of those big players have laid out their best practices. Here’s <a href="https://cloud.google.com/resource-manager/docs/super-admin-best-practices">Google Cloud account management</a>.</p><p>@ranadeep_bhuyan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdb614919cc5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quickbooks-small-business-and-self-employed/enterprise-cloud-operations-and-governance-fdb614919cc5">Enterprise Cloud Operations and Governance</a> was originally published in <a href="https://medium.com/quickbooks-small-business-and-self-employed">QuickBooks Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enterprise Cloud Operations and Governance]]></title>
            <link>https://medium.com/@ranadeepbhuyan/enterprise-cloud-operations-and-governance-eaba3c014ffd?source=rss-58bf5dccae69------2</link>
            <guid isPermaLink="false">https://medium.com/p/eaba3c014ffd</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[organization]]></category>
            <category><![CDATA[operations]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Ranadeep Bhuyan]]></dc:creator>
            <pubDate>Wed, 05 Feb 2020 08:37:17 GMT</pubDate>
            <atom:updated>2020-02-07T16:03:19.643Z</atom:updated>
            <content:encoded><![CDATA[<p>A case study on cloud security.</p><p>Many customers start by creating separate cloud (google, aws, azure etc) accounts for each environment (dev, pre-prod, prod etc) for each application. This helps create a strong separation between all resources in each account. However, this approach can create great operational challenges.</p><p>Let’s imagine an enterprise organisation with 1000+ service teams that are hosted on cloud. A centrally managed organisation with a bunch of tools and automation processes helps cloud ops to centrally manage billing, control access, compliance, security and share resources across many AWS accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EbG0Yw_oQgaTDTjPkMP_lg.png" /><figcaption>A cloud organisation with many environments and many applications</figcaption></figure><p>This blog is going to throw some light on how cloud Ops teams manage all of those thousands of cloud accounts and 100s of resources in each accounts using two simple use cases. Also we will understand, why it is very important for organisation and for their customers. In the end, I will share one learning from a devops standpoint and share a few links to some of the best practices.</p><p><strong>The “Capital One” Use case:</strong></p><p><a href="http://suspect%20allegedly%20found%20and%20exploited%20a%20misconfigured%20WAF%20(web%20application%20firewall,%20a%20type%20of%20cloud%20service)%20to%20access%20Capital%20One%E2%80%99s%20VPC%20(virtual%20private%20cloud).%20Once%20inside,%20she%20launched%20an%20EC2%20instance%20to%20trick%20the%20AWS%20Metadata%20Service%20into%20trusting%20it,%20thereby%20receiving%20credentials%20to%20access%20and%20decrypt%20data%20stored%20in%20an%20S3%20bucket.">Capital One Data theft of 106M customers</a>: <strong>A misconfigured cloud resource (WAF) caused the cloud security failure</strong></p><p>WAF (web application firewall) is a type of cloud security service to access one’s VPC (virtual private cloud) resources.</p><p>If any EC2 (elastic cloud compute, a unix/windows box in the cloud) is open to accept incoming traffic from 0.0.0.0/* IP range then it allows internet traffic to the EC2. Generally, WAF rules can be configured prevent 0.0.0.0/* to reach to any resource in the VPC. At a lower level at least a security group can be added to filter incoming traffic. The suspect twitted about the brag.</p><p>The hacker twitted after she took a dump of all customer data using their S3 and aurora DB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/0*fgBQa7Ptki68p8xw.png" /></figure><p>Once inside, she launched an EC2 instance to trick the AWS Metadata Service into trusting it, thereby receiving credentials to access and decrypt data stored in an S3 bucket.</p><p>This incident created paranoia across industry and suddenly bringing in lots of focus to these cloud services settings and configurations.</p><h3>How to prevent this from happening?</h3><p>Security and Compliance is a shared responsibility between cloud infra providers (aws) and the customer (consumer company). It is commonly referred to as <strong>Security “of” the Cloud</strong> versus<strong> Security “in” the Cloud.</strong></p><p>Example from AWS cloud: for centralised governance, billing, security policies etc. through aws organization.</p><p>A master account service that gives a centralised control to all of resources that is owned by a company.</p><p><strong>Security, compliance and governance Policies:</strong></p><p>Do you see those emails from your cloud operations team?</p><p>with a message like “Policy Violated — Action needed”</p><p>Cloud security team notifies regularly about any misconfiguration</p><p>This is a security framework published by the Center for Internet Security as the foundation of your security policy library, to expedite your time-to-value and achieve consistent configurations across your cloud footprint.</p><p><strong>AWS Organization</strong></p><p>A lot of things goes on continuously behind the scene.</p><p>Fundamental unit of an accounts is called <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_ous.html"><em>Organizational Unit (OU)</em></a>. OUs allow the ability to arbitrarily group accounts and other OUs together so that they can be administered as a single unit. <em>A Service Control Policy (SCP) </em>is applied to an OU. These policies can describe the access and resource restrictions for the OU. A <strong>root</strong> is a top-level parent node in the hierarchy of an <strong>organisation</strong> that can contain <strong>organisational</strong> units (OUs) and accounts. A <strong>root</strong> contains every <strong>AWS</strong> account in the <strong>organisation</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hWdn5W7bVvoMgYQx7Kn8vg.png" /><figcaption>OUs accounts and managed by a root in an aws organization</figcaption></figure><p><strong>Product:</strong> Assets which form part of the Product or support the Product in some way. The things you want to build.</p><p><strong>Core: </strong>These assets are perhaps less obvious, but are just as important. They are the <em>supporting cast</em> to your Product.</p><p><strong>Use of automation to avoid mistakes</strong></p><p>A governing cloud can be created using CLI</p><pre>create-gov-cloud-account<br>--email &lt;value&gt;<br>--account-name &lt;value&gt;<br>[--role-name &lt;value&gt;]<br>[--iam-user-access-to-billing &lt;value&gt;]<br>[--cli-input-json &lt;value&gt;]<br>[--generate-cli-skeleton &lt;value&gt;]</pre><p>Create a security policy -</p><pre>aws organizations create-policy --content ~/org/policies/waf-policy.json --name AllowAllS3Actions, --type SERVICE_CONTROL_POLICY --description &quot;Allows delegation of all S3 actions&quot;</pre><p><strong>Best practices</strong></p><p>By now you may have co-related both use cases and understood both cases were because of not following best practices. Automation to enforce and automatic detection and remediation is the key to reduce the vulnerability window. Regular communication of changes, alerts on production traffics helps minimise friction and failed customer experiences and outages. Every day a new set of security vulnerabilities are uncovered, making development teams aware of those and their remediation helps such outages and preventing any kind of breaching into private networks. All resources in a cloud account needs to tagged properly with an organisational standard policy. Resources Those belongs to prod and development needs to be tagged so that root is aware of what WAF to be applied.</p><p>A right organisational <a href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">tagging strategy</a> makes a difference how we govern our accounts and resources in it. In the beginning, we may start with multiple environments from one account such as production database and production database, if the organisation tagging policy is designed right for those requirements and notifying for the same to teams makes a great deal.</p><p><strong>Reference:</strong></p><p>I found a bunch of materials among them AWS <a href="https://aws.amazon.com/answers/account-management/">documentation on account management</a> is one of the best ones. There is a <a href="https://cloudacademy.com/learning-paths/aws-governance-compliance-39/">course on governance and compliance</a> — seems good.</p><p>One best practice blog of separating <a href="https://blog.codeship.com/separate-aws-production-and-development-accounts/">development and production</a> accounts.</p><p>Not in AWS? no issues, each of those big players have laid out their best practices. Here’s <a href="https://cloud.google.com/resource-manager/docs/super-admin-best-practices">Google Cloud account management</a>.</p><p>@ranadeep_bhuyan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eaba3c014ffd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solution for challenges rendering rich contents on email clients across devices]]></title>
            <link>https://medium.com/quickbooks-small-business-and-self-employed/solution-for-challenges-rendering-rich-contents-on-email-clients-across-devices-433255033a96?source=rss-58bf5dccae69------2</link>
            <guid isPermaLink="false">https://medium.com/p/433255033a96</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[responsive-design]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[email-marketing]]></category>
            <dc:creator><![CDATA[Ranadeep Bhuyan]]></dc:creator>
            <pubDate>Fri, 12 Jan 2018 16:28:37 GMT</pubDate>
            <atom:updated>2018-01-13T03:48:19.995Z</atom:updated>
            <content:encoded><![CDATA[<h3>Solution for issue with rich contents on HTML email clients</h3><p>Quickbooks has started generating <a href="https://youtu.be/Vg7li26O6W0?t=61">Responsive email Invoices</a> for it’s Small business’s customers. Responsive email templates (templates that adjust to the size of your screen) are the cream of the crop of email marketing. When I open them on mobile the text is bigger and easier to read and the images have resized. This is the standards of email marketing in the modern digital world.</p><p>I am going to outline our leanings that helps identify the culprit sabotaging any email content generation (programmatically) project — along with tips to make coding jobs a success.</p><p>Modern devices like iPhone/iPad android devices supports HTML5, advance CSS and media queries same as like desktop browsers chrome, safari and Firefox. Email HTML can use those to create beautiful looking emails. However Outlook and office 365 are among the most dumb email clients when it comes to render smart and rich contents.</p><p>When we look back few years from now, HTML email was not considered as necessity. There is still a lot of <a href="http://www.georgedillon.com/web/html_email_is_evil.shtml">issues with html emails</a> that are exists.</p><p>Coding HTML email can be tough and it is even tougher when we generate rich HTML contents, knowing nothing about the type of email application that will render my HTML. If you’ve included video, Flash, rollovers, JavaScript or even a simple picture or text — that’s it, chances are it won’t show up the way you wanted it to. Even with plain text, things can go wrong with spacing and alignments in various email clients.</p><h4><strong>Common issues and their simple solves</strong></h4><p>These bellow are the most common issues faced by most of email creation codes if the HTML contains CSS and images. javascript? no! it will not execute at all.</p><ol><li>Large number of common HTML tags are not recognized the way they work in browsers.</li></ol><pre>&lt;script&gt;,&lt;embed&gt;, &lt;iframe&gt;, &lt;form&gt;, &lt;object&gt;, onMouseOver= … <br>a long list</pre><p>Syntax issues: Improperly nested tables or missing tags are easily avoidable easily. Make sure all tags are closed properly.</p><p>1.1 <strong>Use fallback</strong>: We found a few supported stuffs for the HTML contents — semantic building blocks for HTML email. Here is a list —</p><p><a href="https://medium.com/@ranadeepbhuyan/supported-html-tags-in-common-email-clients-2cc11e1ae283">Supported html tags in common email clients</a></p><p>We have a surprisingly smaller set of resources to build the email HTML that works across devices and email clients. Design for both the best experience and the worst experience as well keeping a baseline.</p><p>1.2 Choosing your Rendering library — if you are using react JS for server side rendering, <a href="https://reactjs.org/blog/2017/09/08/dom-attributes-in-react-16.html#migration-path">upgrading to 16.2</a>.</p><blockquote>With react 15.x, non-standard HTML5 attributes were not supported, but many email clients still support them, like table align, valign etc.</blockquote><p>Another option is Apache velocity templates. Mainly the rendering engine needs to support basic HTML, CSS and manipulation of media queries during the content generation time.</p><p>2. Images are not showing up — there are a bunch of reasons why images does not display as expected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*SuMcU37zNfDRVukgDAvfcg.png" /><figcaption>Over half of email clients disables images by default</figcaption></figure><p>2.1 One way to ask subscribers adds the sender email to their contacts.</p><p>2.2 Text of top of an image — background images are not supported on Outlook later 2007. Background color can be used as a fallback property.</p><p>2.3 Links and href — never use relative paths, instead use absolute paths.</p><p>2.4 Colored borders around images (blue by default)</p><pre>use inline css “boder-style:none” instead html border=”0&quot;</pre><p>2.5 White space bellow images — In a table based design</p><pre>add this inline css “display:block” to the image tag. Silly, but works</pre><p>2.6 Image file format — Some email client does not support Tif, bmp, png</p><pre>Use jpeg or gif that are more compatible to simple web</pre><p>3 <strong>Fonts</strong> are not displaying correctly has couple of reasons. a) fonts are not installed and b) fonts specified in the email were striped out by the email server or the client.</p><pre>Using web safe fonts that are commonly installed can resolve a. If fonts are specified in <em>&lt;head&gt;</em> Gmail will not show them instead font styles needs to be inline.</pre><h4><strong>Troubleshooting HTML: few Tips</strong></h4><ol><li>Override default settings with “0” — some email clients has their own logic of rendering defaults. Include values for <em>cellpadding, cellspacing, image borders etc. Try, explicitly setting values for font colors, size and faces are also ways to override defaults.</em></li><li>Issues with cells like, column/row not appearing in table add a border for troubleshooting</li></ol><pre><em>&lt;table callpading=”0” width=”50” callspacing=”0” border=”1”&gt;</em></pre><ol><li>Issues with off layouts and alignments — <em>Double check you math. Include properties like valign, align, in &lt;td&gt; and &lt;p&gt; tags</em></li><li>Isolate the problem — Copy your generate HTML code to browser debugger like Firefox and try using features like hide background, images, show ALT. Use W3C HTML validator to find out syntax issues.</li></ol><h4><strong>Faster development and testing tools</strong></h4><p>We had all in monolith —the build used to take 25mins in local and 30mins to test from the code. We moved out whole of it to AWS and started generating the HTML email from outside of monolith. In addition to that, we&#39;ve created just a dummy page (simutaled) as a smart development environment. Now the HTML can be created where a real time changes can be visible on just a button click.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0PWY_-PQyM1NuqRSl8w6rQ.png" /><figcaption>Side by side: Responsive HTML Simulation</figcaption></figure><p>Testing in as many email clients across devices, browsers and operating systems available is a challenge. There are quite a few online tools out their come handy. We subscribed a license for mailchimp. That can show the simulated HTML on a good number of email clients. It also allows to sent email as test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*aVANMHaY3QC5V5LDvzYBtg.gif" /><figcaption>MailChimp — Simulated test</figcaption></figure><p>For any technical query on email creation issues — my twitter handle is @ranadeep_bhuyan</p><p>Happy designing!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=433255033a96" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quickbooks-small-business-and-self-employed/solution-for-challenges-rendering-rich-contents-on-email-clients-across-devices-433255033a96">Solution for challenges rendering rich contents on email clients across devices</a> was originally published in <a href="https://medium.com/quickbooks-small-business-and-self-employed">QuickBooks Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Supported html tags in common email clients]]></title>
            <link>https://medium.com/@ranadeepbhuyan/supported-html-tags-in-common-email-clients-2cc11e1ae283?source=rss-58bf5dccae69------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cc11e1ae283</guid>
            <category><![CDATA[email]]></category>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[email-marketing]]></category>
            <category><![CDATA[responsive-design]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Ranadeep Bhuyan]]></dc:creator>
            <pubDate>Fri, 12 Jan 2018 14:42:51 GMT</pubDate>
            <atom:updated>2018-01-12T14:51:05.603Z</atom:updated>
            <content:encoded><![CDATA[<p>The list of <a href="https://www.outlook-apps.com/html-ignored-by-outlook/">UN-supported HTML</a> tags and css attributes for common email client like outlook, iOS, Gmail is too long. I am trying to capture the supported one — which is a small list. I found this after reverse engineering of my contents during testing phase with Microsoft outlook, Yahoo and Gmail.</p><h4>UNIVERSALLY SUPPORTED CSS PROPERTIES (INLINE ONLY)</h4><p>background background-color border border-bottom border-bottom-color border-bottom-style border-bottom-width border-color border-left border-left-color border-left-style border-left-width border-right border-right-color border-right-style border-right-width border-style border-top border-top-color border-width* color* display* font* font-family* font-size* font-style font-variant font-weight height letter-spacing line-height* list-style-type padding padding-bottom padding-left padding-right padding-top table-layout* text-align* text-decoration text-indent text-transform vertical-align</p><p>Here are the combinations:-</p><p>&lt;a&gt; class, href, id, style, target</p><p>&lt;b&gt; class, id, style</p><p>&lt;br&gt; class, id, style</p><p>&lt;div&gt; align, class, dir, id, style</p><p>&lt;font&gt; class, color, face, id, size, style</p><p>&lt;h1&gt;..&lt;h6&gt; align, class, dir, id, style</p><p>&lt;hr&gt; align, size, width</p><p>&lt;img&gt; align, border, class, height, hspace, id, src, style, usemap, vspace, width</p><p>&lt;label&gt; class, id, style</p><p>&lt;li&gt; class, dir, id, style, type</p><p>&lt;ol&gt; class, dir, id, style, type</p><p>&lt;p&gt; align, class, dir, id, style</p><p>&lt;span&gt; class, id, style</p><p>&lt;strong&gt; class, id, style</p><p>&lt;table&gt; align, bgcolor, border, cellpadding, cellspacing, class, dir, frame, id, rules, style, width</p><p>&lt;td&gt; abbr, align, bgcolor, class, colspan, dir, height, id, lang, rowspan, scope, style, valign, width</p><p>&lt;th&gt; abbr, align, background, bgcolor, class, colspan, dir, height, id, lang, scope, style, valign, width</p><p>&lt;tr&gt; align, bgcolor, class, dir, id, style, valign</p><p>&lt;u&gt; class, id, style</p><p>&lt;ul&gt; class, dir, id, style</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cc11e1ae283" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Progressive web application using Google Polymer]]></title>
            <link>https://medium.com/@ranadeepbhuyan/progressive-web-application-using-google-polymer-a3b73f6663ae?source=rss-58bf5dccae69------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3b73f6663ae</guid>
            <category><![CDATA[polymer]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-apps]]></category>
            <category><![CDATA[web-components]]></category>
            <category><![CDATA[progressive]]></category>
            <dc:creator><![CDATA[Ranadeep Bhuyan]]></dc:creator>
            <pubDate>Fri, 12 Jan 2018 06:10:50 GMT</pubDate>
            <atom:updated>2018-01-13T03:59:52.178Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>— DRAFT from Slides</strong></p><p>The web has evolved through a numerous tides of reactive measures in order to address some of major real world problems. We have come across number of client side technologies starting from introducing javascript into the browser till the time of desperate insertion pollyfils (to support a few HTML specs) into the browser platform. As well in the server side — we have made a lot of improvements from the world of ASP/JSP to SOAP/REST and Push servers. The industry has evolved with single page architecture with various javascript frame works and tools.</p><p><strong>Ideal wish list of web applications</strong></p><p>Super fast first page load from any full url within the application, quickly become responsive to the user actions, rich user experience (app-like) and reliable offline, works mostly with no/poor network. Reusability is one of the major factor as well.</p><p>Many of the current frameworks have been trying to solve for this ideal state in parts or in combination of a few for example SPA with serve side rendering. We are yet to see any magical combination of both server and client technologies coming together to solve for the wish list of the ideal state. There may be various reasons to this — like technical companies has competitions from each other, less collaborations, researchers are working in silo etc. As a result of this, almost all small or large organizations are creating large monolith stacks every now and then.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6FMG1vzAjSaohx5by9ihcQ.png" /><figcaption>A typical ideal state of a web app</figcaption></figure><p><strong>Pain points — solutions evolved so far</strong></p><p>At times, when we start with new web application or re-architecture of an old application we all have to take a difficult decision at the beginning — that is, ‘what framework and tech stack are we going to use?’ Once the decision is taken we are stuck with the decision at least for two years or till we decide on the same decision again.</p><ul><li>Why Google Polymers?</li><li>HTTP 2 Push for UI components</li><li>Progressive web</li><li>Recommended practices to create components</li><li>Demo of simple Progressive Polymers created</li><li>Where can I re-use?</li><li>Conclusion and QnA</li></ul><p>HTML 1, Javascript, HTTP/1</p><p>Insert Javascript into the browser</p><p>BODY H2 IMG UL LI</p><p>HTML 2 — INPUT FORM SELECT</p><p>HTML5 — VIDEO AUDIO DIALOG CANVAS</p><p>ASP, JSP, PHP</p><p>Modern Javascript frameworks -</p><p>SPA</p><p>Server side rendering</p><p>W3C — Shadow DOM, Custom Elements, HTML Imports</p><p>HTTP/2</p><p>Mostly everybody has to develop one new framework, The ‘like’ button if developed by Facebook, why tweeter has to develope it from the scretch?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KCqQb69tfjPhjs6D.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O9iHMT2Wk802ump5.png" /></figure><p>Don’t know how to fall back to default in 1980s. However after 35 years?</p><ul><li>Framework for creating custom elements</li><li>Uses polyfills for emerging web standards</li><li>Web Component Model</li><li>Google is behind it.</li></ul><p>Pain points:</p><ul><li>Frequent UI changes</li><li>Multiple workflows of the same task</li><li>Lot of back and forth between Dev-PM-XD</li><li>Creating future monolith</li></ul><p>Simplicity and ‘Do one thing and do it well’</p><ul><li>Just another JS library</li><li>It is more of a Philosophy to create re-usable components.</li><li>A best practice, a design Pattern</li></ul><p>An attempt to modularize the web</p><ul><li>Templates</li><li>Custom Elements</li><li>Shadow DOM</li><li>Imports</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-Fvi-RUIcKA4sprC.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MecFoEKQbZxTRhQE.png" /><figcaption>Using Polyfills (developed by respective feature developers for each of those unsupported browsers) made it accessible.</figcaption></figure><p>W3C standards are slower to get into main stream rendering engines — like browsers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VuYmsBrLJug9mFgk.png" /></figure><p>Chunks of markup that can be activated for later use</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VuYmsBrLJug9mFgk.png" /></figure><p>Let authors define their own elements</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k2qDsoy0OX0cJDIa.png" /></figure><p>Encapsulates a DOM subtree</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DGyWSShC3WJDNKrr.png" /></figure><p>Standardize importing of different file types</p><p>Everything is an element</p><p>Literally creating new HTML tags</p><p>Everything is an element</p><p>Literally creating new HTML tags</p><p>New paradigm to think about web development</p><p>Everything is an element</p><p>Literally creating new HTML tags</p><p>New paradigm to think about web development</p><p>Don’t reinvent the wheel</p><p>Everything is an element</p><p>Literally creating new HTML tags</p><p>New paradigm to think about web development</p><p>Don’t reinvent the wheel</p><p>Use/Extend premade Custom Elements</p><p>Everything is an element</p><p>Literally creating new HTML tags</p><p>New paradigm to think about web development</p><p>Don’t reinvent the wheel</p><p>Use/Extend premature Custom Elements</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*1iCYZOqT6E2p8_Mf4sJ7Gw.png" /></figure><h4>Simplify web app</h4><h4>Find</h4><h4>Import</h4><h4>Use</h4><h4>Find</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B88IGbt7PYnv8mWA.png" /></figure><pre>$ bower install <strong>Polymer/core-toolbar</strong> $ bower install <strong>Polymer/core-icon-button</strong></pre><h3>Import</h3><pre>&lt;head&gt; &lt;link rel=&quot;import&quot; href=&quot;core-toolbar.html&quot;&gt; &lt;link rel=&quot;import&quot; href=&quot;core-icon-button.html&quot;&gt; &lt;/head&gt;</pre><h3>Use</h3><pre>&lt;core-toolbar&gt; &lt;core-icon-button icon=&quot;menu&quot;&gt;&lt;/core-icon-button&gt; &lt;span flex&gt;Toolbar&lt;/span&gt; &lt;core-icon-button icon=&quot;refresh&quot;&gt;&lt;/core-icon-button&gt; &lt;core-icon-button icon=&quot;add&quot;&gt;&lt;/core-icon-button&gt; &lt;/core-toolbar&gt;</pre><ul><li>Reusable</li><li>Good for Responsive Design</li><li>Eliminates boilerplate</li><li>Completely encapsulates all HTML/CSS</li><li>Polyfills</li><li>Early use of Web Component Model</li><li>Easy to use data-binding functionality</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qC0t-BFSLLgph6bV.png" /></figure><p>Layers of Polymer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/0*zJkAuuzqnEprW2mf.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SXyHrWXmoTkwTweb.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wUeZjYvP3dMrRvn1.png" /></figure><p>Map</p><p>Node Bot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wSxdIR1o3jnQDr8X.png" /></figure><p><em>Originally published at </em><a href="https://ranadeepbhuyan.github.io/poly/index.html"><em>ranadeepbhuyan.github.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3b73f6663ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>