Home

  • Work with AWS S3

    This post is my note to work with AWS S3. Permissions Allow to access specific location

    More

  • CI/CD with Jenkins

    I choose Ubuntu because we can install it easily with apt. Don’t use Amazon Linux Image because it’s complex, consist of series of steps. I. Install Jenkins To install Jenkins on Ubuntu, you can follow these steps: This command installs OpenJDK 11, which is recommended for Jenkins. You can also enable Jenkins to start on…

    More

    CI/CD with Jenkins
  • Event-Driven Handlers in Rails

    Event-Driven Architecture is not new. It is implemented in many big systems such as commercial website, blockchain crypto currency exchange, game development like unreal engine blueprints etc. It solves many problems related to performance problems as well as asynchronous tasks. In distributed system, talking about implementation especially the cloud computing such as AWS serverless EventBridge,…

    More

    Event-Driven Handlers in Rails
  • Performance Optimization #1

    Talking about performance optimization which is a big topic. Because there are so many thing affecting the performance. It depends on so many factors such as infrastructure, coding, networking etc. In this article I just present the performance issue that I encountered and how to solve it. This is a small topic, small solution for…

    More

    Performance Optimization #1
  • Restart Puma Server with zero downtime

    As a ruby on rails developer, I also think about the performance and availability dimensions of system. We know that the blue green deployment help us this problem. But we don’t really need a complex kind of this deployment. It also costs us more money because we have to build more environment to switch when…

    More

    Restart Puma Server with zero downtime
  • Dropzone

    Basic configuration. autoQueue: true, which means auto call url to upload itself. If value is false, we have to implement custom upload. Render and listening events on “success” we want to put image url which returned from ajax to custom div. On “complete” we want to remove the preview of image (default).

    More

    Dropzone
  • How to use pynamodb with CRUD

    Pynamodb is a python library that is very helpful to play with dynamodb. It even helps us to do with a shorter code than ruby. Now let’s go through CRUD operations in short. Import class and data type. Declaring Meta class which is the nested class containing the configuration for pynamodb such as table_name and…

    More

    How to use pynamodb with CRUD
  • AWS SAM creates lambda function

    Create Function In order to have expected function name we need to add “FunctionName” to Properties in template file. Sam won’t do this automatically for us. We do this manually. We basically need to modify the template after it generated by sam using existed template like helloword for example. Timeout in seconds. Bind event to…

    More

    AWS SAM creates lambda function
  • Rails 7 Importmap pin import and preload

    When we pin a file, it would go here which is a map of urls. This is the instruction for browser. Let’s say we have this directory. After “pin” we “import”. “Import” is just an action to map file to file like javascript mechanism. We don’t do relative import for javascript in rails 7. It…

    More

    Rails 7 Importmap pin import and preload

Will Nguyen

© 2024 Will Nguyen