Giter Site home page Giter Site logo

blog-old's Introduction

hhow09.github.io

This website is built using Docusaurus 2, a modern static website generator.

Installation

yarn install

Local Development

yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

blog-old's People

Contributors

hhow09 avatar

Stargazers

diff.blog avatar

Watchers

 avatar

blog-old's Issues

Micro Service

Videos

Terms

Self Provisioning

  • Self-provisioning, commonly known as the cloud self-service, is a feature among many cloud service providers which allows their end users to provision resources by themselves, and set up or launch a service or application without the intervention of dedicated IT personnel or the service providers themselves. This gives users greater freedom in using services within the bounds set by the provider.
  • Self-provisioning can go further than just smarter build automation

Bounded context

  • the coupling of a component and its data without many other dependencies — decreasing the need to share components

Micro Services v.s. SOA

  • Data model and database per service v.s. Global data model and shared databases
  • Smaller service v.s. Larger monolithic application

Topics

Service v.s. Library

  • library reduce code duplication, however, whenever library change any service including that needs rebuild and redeploy
  • You should strive to use libraries for functionality that’s unlikely to change. For example, a generic Money class that can be shared among different services

Dependency

Cascading Failure

  • need some fallback logic: ex. Netflix/Hystrix
  • fault injection testing
  • define critical services

Client side library

  • client side library may return back to monolith problems: process and services hides behind library consuming resources.
  • Library vs. bare bone REST call ?

Scaling

CAP Theorem

Auto Scaling

Reference

Webpack 5 - Module Federation

Webpack 5 - Module Federation

  • It is a webpack 5 feature
  • It allows you to dynamically load another JS bundle from another package (from remote).
  • It allows you to build then expose a entryPoint to allow others to fetch bundled JS.

Introduction

Use Case: Module Federation as a solution of Micro Frontend

  • For micro frontend, each frontend project can has its own host/server, framework, render logic ,deploy cycle
  • Before module federation, page container can use 1) iframe 2) client side JS module 3) web component to assemble those micro frontend projects into pages. They do not include Webpack process.
  • Nowadays most of the frontend framework goes through Webpack process, with this new feature we can

Some concern

  1. reliability: when fetch bundle from remote host, you need to ensure that host is live.
  2. performance: fetch bundle from remote host may be slow.
  3. complexity: need to hard-coded / manage remote host url in the html
  4. It's client side rendering, not compatible with SSR.

Example

Use Case: Module Federation as a substitute of sharing component

  • different apps under same host, app A can share a component with app B

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.