Executor - Fast exec task with go and less mem ops

executor

fast exec task with go and less mem ops

Why we need executor?

Go with goroutine is the best structure, it's help developer folk a thread easy than other language. Go have chanel mechanic to connect goroutine(thread) data. But what problem??

  • Fisrt, go keywork folk goroutine but go not commit late time. Then you exact your goroutine can run but you don't know when? It's oke fast with small traffic but when server high load you will scare about that, because is slow, and when you create many goroutine is very slow. waste of time

  • Second, when you create and release goroutine many time, it's with increase memory and CPU time of system, Sometime some developer forgot release, It's can be make app heavy. waste of resource

How to resolve problem??

This's my resolver.

  • We create exact or dynamic number goroutines. Then using Job is a unit bring data information to Worker to process. Worker no need release and you only create 1 time or reset when you update config.

  • Job bring 2 importance field is: param and exector and you can call them like exector(param) and get all result and return on callback is optional.

  • It's help your app no need create and release goroutine continuity.

  • Easy to access and using when coding.

Disadvance?

  • At you know. If you using callback maybe memory leak if you not control bester.
  • If buffer chanel full you need wait a little bits for executed job.

Installtion

Now it's time you can install lib and experience

go get github.com/teng231/executor
Owner
Te Nguyen
A little bits for thinking yourself
Te Nguyen
Similar Resources

This api has been built according to the task assigned by Apponity.

This api has been built according to the task assigned by Apponity.

Appointy_Task This api has been built according to the task assigned by Apponity. All the tasks Provided have been completed Link to the Document of t

Oct 10, 2021

Implementation of the test task, chat in the goland language

Implementation of the test task, chat in the goland language

Implementation of the test task, chat in the goland language

Dec 5, 2021

Let's Go is task sharing app implemented in golang.

Let's Go - A sample GO app Overview Let's Go is an HTTP server. It has various apis to play with. It is a small app that can group users of a company

Dec 13, 2021

Golang-module-references - A reference for how to setup a Golang project with modules - Task Management + Math Examples

Golang Module Project The purpose of this project is to act as a reference for setting up future Golang projects using modules. This project has a mat

Jan 2, 2022

The library solves the task of recalculating the exchange order book

fastme (fast golang matching engine) library Design The library solves the task of recalculating the exchange order book. A classic matching engine co

Aug 10, 2022

Antch, a fast, powerful and extensible web crawling & scraping framework for Go

Antch Antch, inspired by Scrapy. If you're familiar with scrapy, you can quickly get started. Antch is a fast, powerful and extensible web crawling &

Jan 6, 2023

Fast and secure initramfs generator

Fast and secure initramfs generator

Booster - fast and secure initramfs generator Initramfs is a specially crafted small root filesystem that mounted at the early stages of Linux OS boot

Dec 28, 2022

The package manager for macOS you didn’t know you missed. Simple, functional, and fast.

The package manager for macOS you didn’t know you missed. Simple, functional, and fast.

Stew The package manager for macOS you didn’t know you missed. Built with simplicity, functionality, and most importantly, speed in mind. Installation

Mar 30, 2022

a really fast difficulty and pp calculator for osu!mania

gonia | mania star + pp calculator a very fast and accurate star + pp calculator for mania. gonia has low memory usage and very fast calculation times

Mar 10, 2022
basic append ops lib by golang

basic append ops lib by golang

Oct 28, 2021
Orkestra Workflow Executor Template Repo

Orkestra Workflow Executor Template Repo This is a template repository for a new workflow executor Usage Generate your repository from this template b

Nov 9, 2021
K3ai Executor is the runner pod to execute the "one-click" pipelines
K3ai Executor is the runner pod to execute the

Welcome to K3ai Project K3ai is a lightweight tool to get an AI Infrastructure Stack up in minutes not days. NOTE on the K3ai origins Original K3ai Pr

Nov 11, 2021
Chaosblade executor for chaos experiments on Java applications
Chaosblade executor for chaos experiments on Java applications

Chaosblade-exec-jvm: Chaosblade executor for chaos experiments on Java applications Introduction The project is a chaosblade executor based on jvm-san

Dec 16, 2022
Highly extensible, customizable application launcher and window switcher written in less than 300 lines of Golang and fyne
Highly extensible, customizable application launcher and window switcher written in less than 300 lines of Golang and fyne

golauncher A go application launcher A simple, highly extensible, customizable application launcher and window switcher written in less than 300 lines

Aug 21, 2022
Solver for wordle hard mode - achieves 5 attempts or less 100% of the time

wordier Solver for wordle hard mode - achieves 5 attempts or less 100% of the time Example - Spoiler ➜ wordier git:(master) ✗ go run main.go scamp ➜

Jan 12, 2022
An application dedicated to the trivial and boring task of meal planning 📅 and generating shoppings list 🛒.
An application dedicated to the trivial and boring task of meal planning 📅 and generating shoppings list 🛒.

An application dedicated to the trivial and boring task of meal planning ?? and generating shoppings list ??.

Mar 1, 2022
Developed Code for the Fulfillment of the technical task given by Appointy using Go

INSTAGRAM BACKEND API BY KUNAL KULKARNI Table of Contents About The Project Built With Getting Started Prerequisites Installation Usage License Contac

Oct 10, 2021
This is the task done for Appointy

Instagram-Backend-API This is the task done for Appointy Tasks Done here : Create an User Should be a POST request Use JSON request body UR

Oct 9, 2021
Appointy internship task
Appointy internship task

appointy_task_Krishna_Harchandani Appointy internship task Appointy_Krishna_Harchandani Appointy Internship Task Instagram Backend API Krishna Harchan

Oct 9, 2021