Tuesday, March 20, 2018

Beyond the Twelve-Factor App



https://12factor.net/

https://content.pivotal.io/blog/beyond-the-twelve-factor-app

https://dzone.com/articles/the-case-of-the-dreaded-interface


  1. One codebase, one application
  2. API first
  3. Dependency management
  4. Design, build, release, and run
  5. Configuration, credentials, and code
  6. Logs
  7. Disposability
  8. Backing services
  9. Environment parity
  10. Administrative processes
  11. Port binding
  12. Stateless processes
  13. Concurrency
  14. Telemetry
  15. Authentication and authorization




  1. Can it be End to End Tested ?
  2. Does it have consistent Build Pipe pipeline
  3. Code review and Static analysis
  4. Does it have Deployment Pipeline
  5. Monitoring systems like newrelic
  6. production support
  7. Is it easy to maintain?
  8. Is it easy to set up in the development environment?
  9. Does the stack include monitoring system and alert like cloudwatch and are those scripted ?
  10. Can the interface be documented with Swagger ?

    Sunday, January 14, 2018

    AWS Lamda



    AWS Cloud9-based code editor - You can now edit code for your functions in a robust, IDE-like environment that is based on AWS Cloud9




    https://docs.aws.amazon.com/lambda/latest/dg/tutorial-scheduled-events-create-function.html

    Lock/Monitor, Mutex, Semaphore




    A lock allows only one thread to enter the part that's locked and the lock is not shared with any other processes.
    A mutex is the same as a lock but it can be system wide (shared by multiple processes).
    semaphore does the same as a mutex but allows x number of threads to enter, this can be used for example to limit the number of cpu, io or ram intensive tasks running at the same time.