Skip to content

Instantly share code, notes, and snippets.

View SureshKL's full-sized avatar

Suresh K L SureshKL

  • Sony India Software Centre Private Limited
  • Bangalore
View GitHub Profile
@SureshKL
SureshKL / generators.ipynb
Created November 22, 2018 18:02
Generators
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SureshKL
SureshKL / abstract_factory.py
Created November 22, 2018 17:28
Design Patterns
from __future__ import print_function
from abc import ABCMeta, abstractmethod
class Button:
__metaclass__ = ABCMeta
@abstractmethod
def paint(self):
@SureshKL
SureshKL / thread_vs_process.py
Created November 21, 2018 18:44
Python Concurrency
import threading
import time
import random
import concurrent.futures
numbers = list(range(1, 11))
def product(num):
for i in range(1, 10000000):
@SureshKL
SureshKL / Design Patterns.md
Last active November 22, 2018 17:27
Design Patterns

Design Patterns

Definition

Design Patterns are solutions to to commonly occurring problems.

We need design patterns to ensure our work is consistent, reliable and understandable.

Examples

  • Building Architecture
  • Electrical and plumbing
@SureshKL
SureshKL / Microservices.md
Last active November 18, 2018 14:13
Microservices

Microservices

Microservices are architectural style in which large & complex software applications are composed of one or more smaller services.

Microservices are design principles for an application

Four main characteristics:

  1. Loosely Coupled: The microservices are not tightly dependent on each other
  2. Small & Focused: Each microservice focus on smaller & single task
  3. Language Neutral: One microservice can be written in JAVA for performance benefits and other in Python for quicker deployment