Alternatives to MATLAB logo

Alternatives to MATLAB

R Language, NumPy, Octave, Tableau, and Python are the most popular alternatives and competitors to MATLAB.
1K
689
+ 1
37

What is MATLAB and what are its top alternatives?

MATLAB is a powerful programming language and computing environment for scientific and engineering applications. It is widely used for tasks such as data analysis, visualization, modeling, and simulation. Key features of MATLAB include a large library of built-in functions and toolboxes for various domains, excellent support for matrix operations, data visualization capabilities, and easy integration with other programming languages. However, MATLAB can be expensive for non-academic users, it requires a license for commercial usage, and it may not be as flexible for certain types of programming tasks.

  1. Python: Python is a versatile and popular programming language with a wide range of scientific computing libraries such as NumPy, SciPy, and Matplotlib. Key features include a large user community, free and open-source nature, compatibility with various operating systems, and extensive libraries for scientific computing tasks. Pros include ease of use, flexibility, and cost-effectiveness, while cons may include a steeper learning curve for beginners coming from MATLAB.
  2. Octave: Octave is an open-source alternative to MATLAB that is compatible with MATLAB syntax and many of its toolboxes. Key features include support for matrix operations, plotting functions, and numerical simulations. Pros of Octave include being free and open source, while cons may include potential compatibility issues with certain MATLAB functions and toolboxes.
  3. R: R is a programming language and software environment for statistical computing and graphics. Key features of R include a wide range of statistical analysis capabilities, extensive graphical capabilities for data visualization, and a large collection of packages for various statistical tasks. Pros of R include its open-source nature, strong community support, and specialized statistical functions, while cons may include a steeper learning curve for non-statisticians.
  4. Julia: Julia is a high-performance programming language for technical computing with a syntax that is easy to understand and write. Key features include fast execution speeds, built-in parallel computing capabilities, and easy integration with other languages like C and Python. Pros of Julia include its speed and performance, while cons may include a smaller user community compared to more established languages like MATLAB.
  5. Scilab: Scilab is an open-source platform for numerical computations similar to MATLAB. Key features include a user-friendly interface, support for various mathematical functions, and compatibility with MATLAB syntax. Pros of Scilab include being free and open source, while cons may include a smaller ecosystem of libraries compared to MATLAB.
  6. GNU Data Language (GDL): GDL is an open-source alternative to IDL (Interactive Data Language) that is similar to MATLAB. Key features include support for scientific data analysis and visualization, compatibility with IDL syntax, and flexibility for scripting and automation. Pros of GDL include being free and open source, while cons may include a smaller user base compared to MATLAB.
  7. FreeMat: FreeMat is an open-source alternative to MATLAB that is designed for educational and academic use. Key features include support for matrix operations, plotting functions, and a user-friendly interface. Pros of FreeMat include being free and open source, while cons may include limited support for certain MATLAB functions and toolboxes.
  8. SageMath: SageMath is an open-source platform for mathematics that combines many open-source packages into a single interface. Key features include support for various mathematical tasks, a user-friendly notebook interface, and compatibility with multiple programming languages. Pros of SageMath include being free and open source, while cons may include potentially slower performance compared to specialized tools like MATLAB.
  9. Gnuplot: Gnuplot is a command-line program for plotting and visualizing data. Key features include support for various plot types, customizable output formats, and compatibility with different platforms. Pros of Gnuplot include being free and open source, while cons may include a steeper learning curve compared to MATLAB's built-in plotting functions.
  10. Maxima: Maxima is an open-source computer algebra system that can be used for symbolic mathematical calculations. Key features include support for algebraic manipulations, calculus operations, and equation solving. Pros of Maxima include being free and open source, while cons may include a more specialized focus on symbolic mathematics compared to MATLAB's more general-purpose capabilities.

Top Alternatives to MATLAB

  • R Language
    R Language

    R provides a wide variety of statistical (linear and nonlinear modelling, classical statistical tests, time-series analysis, classification, clustering, ...) and graphical techniques, and is highly extensible. ...

  • NumPy
    NumPy

    Besides its obvious scientific uses, NumPy can also be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined. This allows NumPy to seamlessly and speedily integrate with a wide variety of databases. ...

  • Octave
    Octave

    It is software featuring a high-level programming language, primarily intended for numerical computations. Octave helps in solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with MATLAB. ...

  • Tableau
    Tableau

    Tableau can help anyone see and understand their data. Connect to almost any database, drag and drop to create visualizations, and share with a click. ...

  • Python
    Python

    Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best. ...

  • Matplotlib
    Matplotlib

    It is a Python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms. It can be used in Python scripts, the Python and IPython shells, the Jupyter notebook, web application servers, and four graphical user interface toolkits. ...

  • JavaScript
    JavaScript

    JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles. ...

  • Git
    Git

    Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. ...

MATLAB alternatives & related posts

R Language logo

R Language

3.2K
1.9K
412
A language and environment for statistical computing and graphics
3.2K
1.9K
+ 1
412
PROS OF R LANGUAGE
  • 84
    Data analysis
  • 63
    Graphics and data visualization
  • 54
    Free
  • 45
    Great community
  • 38
    Flexible statistical analysis toolkit
  • 27
    Easy packages setup
  • 27
    Access to powerful, cutting-edge analytics
  • 18
    Interactive
  • 13
    R Studio IDE
  • 9
    Hacky
  • 7
    Shiny apps
  • 6
    Shiny interactive plots
  • 6
    Preferred Medium
  • 5
    Automated data reports
  • 4
    Cutting-edge machine learning straight from researchers
  • 3
    Machine Learning
  • 2
    Graphical visualization
  • 1
    Flexible Syntax
CONS OF R LANGUAGE
  • 6
    Very messy syntax
  • 4
    Tables must fit in RAM
  • 3
    Arrays indices start with 1
  • 2
    Messy syntax for string concatenation
  • 2
    No push command for vectors/lists
  • 1
    Messy character encoding
  • 0
    Poor syntax for classes
  • 0
    Messy syntax for array/vector combination

related R Language posts

Eric Colson
Chief Algorithms Officer at Stitch Fix · | 21 upvotes · 6.1M views

The algorithms and data infrastructure at Stitch Fix is housed in #AWS. Data acquisition is split between events flowing through Kafka, and periodic snapshots of PostgreSQL DBs. We store data in an Amazon S3 based data warehouse. Apache Spark on Yarn is our tool of choice for data movement and #ETL. Because our storage layer (s3) is decoupled from our processing layer, we are able to scale our compute environment very elastically. We have several semi-permanent, autoscaling Yarn clusters running to serve our data processing needs. While the bulk of our compute infrastructure is dedicated to algorithmic processing, we also implemented Presto for adhoc queries and dashboards.

Beyond data movement and ETL, most #ML centric jobs (e.g. model training and execution) run in a similarly elastic environment as containers running Python and R code on Amazon EC2 Container Service clusters. The execution of batch jobs on top of ECS is managed by Flotilla, a service we built in house and open sourced (see https://github.com/stitchfix/flotilla-os).

At Stitch Fix, algorithmic integrations are pervasive across the business. We have dozens of data products actively integrated systems. That requires serving layer that is robust, agile, flexible, and allows for self-service. Models produced on Flotilla are packaged for deployment in production using Khan, another framework we've developed internally. Khan provides our data scientists the ability to quickly productionize those models they've developed with open source frameworks in Python 3 (e.g. PyTorch, sklearn), by automatically packaging them as Docker containers and deploying to Amazon ECS. This provides our data scientist a one-click method of getting from their algorithms to production. We then integrate those deployments into a service mesh, which allows us to A/B test various implementations in our product.

For more info:

#DataScience #DataStack #Data

See more
Maged Maged Rafaat Kamal
Shared insights
on
PythonPythonR LanguageR Language

I am currently trying to learn R Language for machine learning, I already have a good knowledge of Python. What resources would you recommend to learn from as a beginner in R?

See more
NumPy logo

NumPy

2.8K
773
14
Fundamental package for scientific computing with Python
2.8K
773
+ 1
14
PROS OF NUMPY
  • 10
    Great for data analysis
  • 4
    Faster than list
CONS OF NUMPY
    Be the first to leave a con

    related NumPy posts

    Server side

    We decided to use Python for our backend because it is one of the industry standard languages for data analysis and machine learning. It also has a lot of support due to its large user base.

    • Web Server: We chose Flask because we want to keep our machine learning / data analysis and the web server in the same language. Flask is easy to use and we all have experience with it. Postman will be used for creating and testing APIs due to its convenience.

    • Machine Learning: We decided to go with PyTorch for machine learning since it is one of the most popular libraries. It is also known to have an easier learning curve than other popular libraries such as Tensorflow. This is important because our team lacks ML experience and learning the tool as fast as possible would increase productivity.

    • Data Analysis: Some common Python libraries will be used to analyze our data. These include NumPy, Pandas , and matplotlib. These tools combined will help us learn the properties and characteristics of our data. Jupyter notebook will be used to help organize the data analysis process, and improve the code readability.

    Client side

    • UI: We decided to use React for the UI because it helps organize the data and variables of the application into components, making it very convenient to maintain our dashboard. Since React is one of the most popular front end frameworks right now, there will be a lot of support for it as well as a lot of potential new hires that are familiar with the framework. CSS 3 and HTML5 will be used for the basic styling and structure of the web app, as they are the most widely used front end languages.

    • State Management: We decided to use Redux to manage the state of the application since it works naturally to React. Our team also already has experience working with Redux which gave it a slight edge over the other state management libraries.

    • Data Visualization: We decided to use the React-based library Victory to visualize the data. They have very user friendly documentation on their official website which we find easy to learn from.

    Cache

    • Caching: We decided between Redis and memcached because they are two of the most popular open-source cache engines. We ultimately decided to use Redis to improve our web app performance mainly due to the extra functionalities it provides such as fine-tuning cache contents and durability.

    Database

    • Database: We decided to use a NoSQL database over a relational database because of its flexibility from not having a predefined schema. The user behavior analytics has to be flexible since the data we plan to store may change frequently. We decided on MongoDB because it is lightweight and we can easily host the database with MongoDB Atlas . Everyone on our team also has experience working with MongoDB.

    Infrastructure

    • Deployment: We decided to use Heroku over AWS, Azure, Google Cloud because it is free. Although there are advantages to the other cloud services, Heroku makes the most sense to our team because our primary goal is to build an MVP.

    Other Tools

    • Communication Slack will be used as the primary source of communication. It provides all the features needed for basic discussions. In terms of more interactive meetings, Zoom will be used for its video calls and screen sharing capabilities.

    • Source Control The project will be stored on GitHub and all code changes will be done though pull requests. This will help us keep the codebase clean and make it easy to revert changes when we need to.

    See more

    Should I continue learning Django or take this Spring opportunity? I have been coding in python for about 2 years. I am currently learning Django and I am enjoying it. I also have some knowledge of data science libraries (Pandas, NumPy, scikit-learn, PyTorch). I am currently enhancing my web development and software engineering skills and may shift later into data science since I came from a medical background. The issue is that I am offered now a very trustworthy 9 months program teaching Java/Spring. The graduates of this program work directly in well know tech companies. Although I have been planning to continue with my Python, the other opportunity makes me hesitant since it will put me to work in a specific roadmap with deadlines and mentors. I also found on glassdoor that Spring jobs are way more than Django. Should I apply for this program or continue my journey?

    See more
    Octave logo

    Octave

    64
    84
    14
    A programming language for scientific computing
    64
    84
    + 1
    14
    PROS OF OCTAVE
    • 8
      Free
    • 4
      Easy
    • 2
      Small code
    CONS OF OCTAVE
    • 1
      Not widely used in the industry

    related Octave posts

    Tableau logo

    Tableau

    1.2K
    1.3K
    8
    Tableau helps people see and understand data.
    1.2K
    1.3K
    + 1
    8
    PROS OF TABLEAU
    • 6
      Capable of visualising billions of rows
    • 1
      Intuitive and easy to learn
    • 1
      Responsive
    CONS OF TABLEAU
    • 2
      Very expensive for small companies

    related Tableau posts

    Looking for the best analytics software for a medium-large-sized firm. We currently use a Microsoft SQL Server database that is analyzed in Tableau desktop/published to Tableau online for users to access dashboards. Is it worth the cost savings/time to switch over to using SSRS or Power BI? Does anyone have experience migrating from Tableau to SSRS /or Power BI? Our other option is to consider using Tableau on-premises instead of online. Using custom SQL with over 3 million rows really decreases performances and results in processing times that greatly exceed our typical experience. Thanks.

    See more
    Shared insights
    on
    TableauTableauQlikQlikPowerBIPowerBI

    Hello everyone,

    My team and I are currently in the process of selecting a Business Intelligence (BI) tool for our actively developing company, which has over 500 employees. We are considering open-source options.

    We are keen to connect with a Head of Analytics or BI Analytics professional who has extensive experience working with any of these systems and is willing to share their insights. Ideally, we would like to speak with someone from companies that have transitioned from proprietary BI tools (such as PowerBI, Qlik, or Tableau) to open-source BI tools, or vice versa.

    If you have any contacts or recommendations for individuals we could reach out to regarding this matter, we would greatly appreciate it. Additionally, if you are personally willing to share your experiences, please feel free to reach out to me directly. Thank you!

    See more
    Python logo

    Python

    238.6K
    194.8K
    6.8K
    A clear and powerful object-oriented programming language, comparable to Perl, Ruby, Scheme, or Java.
    238.6K
    194.8K
    + 1
    6.8K
    PROS OF PYTHON
    • 1.2K
      Great libraries
    • 959
      Readable code
    • 844
      Beautiful code
    • 785
      Rapid development
    • 688
      Large community
    • 434
      Open source
    • 391
      Elegant
    • 280
      Great community
    • 272
      Object oriented
    • 218
      Dynamic typing
    • 77
      Great standard library
    • 58
      Very fast
    • 54
      Functional programming
    • 48
      Easy to learn
    • 45
      Scientific computing
    • 35
      Great documentation
    • 28
      Easy to read
    • 28
      Productivity
    • 28
      Matlab alternative
    • 23
      Simple is better than complex
    • 20
      It's the way I think
    • 19
      Imperative
    • 18
      Free
    • 18
      Very programmer and non-programmer friendly
    • 17
      Machine learning support
    • 17
      Powerfull language
    • 16
      Fast and simple
    • 14
      Scripting
    • 12
      Explicit is better than implicit
    • 11
      Ease of development
    • 10
      Clear and easy and powerfull
    • 9
      Unlimited power
    • 8
      It's lean and fun to code
    • 8
      Import antigravity
    • 7
      Python has great libraries for data processing
    • 7
      Print "life is short, use python"
    • 6
      Flat is better than nested
    • 6
      Readability counts
    • 6
      Rapid Prototyping
    • 6
      Fast coding and good for competitions
    • 6
      Now is better than never
    • 6
      There should be one-- and preferably only one --obvious
    • 6
      High Documented language
    • 6
      I love snakes
    • 6
      Although practicality beats purity
    • 6
      Great for tooling
    • 5
      Great for analytics
    • 5
      Lists, tuples, dictionaries
    • 4
      Multiple Inheritence
    • 4
      Complex is better than complicated
    • 4
      Socially engaged community
    • 4
      Easy to learn and use
    • 4
      Simple and easy to learn
    • 4
      Web scraping
    • 4
      Easy to setup and run smooth
    • 4
      Beautiful is better than ugly
    • 4
      Plotting
    • 4
      CG industry needs
    • 3
      No cruft
    • 3
      It is Very easy , simple and will you be love programmi
    • 3
      Many types of collections
    • 3
      If the implementation is easy to explain, it may be a g
    • 3
      If the implementation is hard to explain, it's a bad id
    • 3
      Special cases aren't special enough to break the rules
    • 3
      Pip install everything
    • 3
      List comprehensions
    • 3
      Generators
    • 3
      Import this
    • 2
      Flexible and easy
    • 2
      Batteries included
    • 2
      Can understand easily who are new to programming
    • 2
      Powerful language for AI
    • 2
      Should START with this but not STICK with This
    • 2
      A-to-Z
    • 2
      Because of Netflix
    • 2
      Only one way to do it
    • 2
      Better outcome
    • 2
      Good for hacking
    • 1
      Securit
    • 1
      Slow
    • 1
      Sexy af
    • 0
      Ni
    • 0
      Powerful
    CONS OF PYTHON
    • 53
      Still divided between python 2 and python 3
    • 28
      Performance impact
    • 26
      Poor syntax for anonymous functions
    • 22
      GIL
    • 19
      Package management is a mess
    • 14
      Too imperative-oriented
    • 12
      Hard to understand
    • 12
      Dynamic typing
    • 12
      Very slow
    • 8
      Indentations matter a lot
    • 8
      Not everything is expression
    • 7
      Incredibly slow
    • 7
      Explicit self parameter in methods
    • 6
      Requires C functions for dynamic modules
    • 6
      Poor DSL capabilities
    • 6
      No anonymous functions
    • 5
      Fake object-oriented programming
    • 5
      Threading
    • 5
      The "lisp style" whitespaces
    • 5
      Official documentation is unclear.
    • 5
      Hard to obfuscate
    • 5
      Circular import
    • 4
      Lack of Syntax Sugar leads to "the pyramid of doom"
    • 4
      The benevolent-dictator-for-life quit
    • 4
      Not suitable for autocomplete
    • 2
      Meta classes
    • 1
      Training wheels (forced indentation)

    related Python posts

    Conor Myhrvold
    Tech Brand Mgr, Office of CTO at Uber · | 44 upvotes · 9.6M views

    How Uber developed the open source, end-to-end distributed tracing Jaeger , now a CNCF project:

    Distributed tracing is quickly becoming a must-have component in the tools that organizations use to monitor their complex, microservice-based architectures. At Uber, our open source distributed tracing system Jaeger saw large-scale internal adoption throughout 2016, integrated into hundreds of microservices and now recording thousands of traces every second.

    Here is the story of how we got here, from investigating off-the-shelf solutions like Zipkin, to why we switched from pull to push architecture, and how distributed tracing will continue to evolve:

    https://eng.uber.com/distributed-tracing/

    (GitHub Pages : https://www.jaegertracing.io/, GitHub: https://github.com/jaegertracing/jaeger)

    Bindings/Operator: Python Java Node.js Go C++ Kubernetes JavaScript OpenShift C# Apache Spark

    See more
    Nick Parsons
    Building cool things on the internet 🛠️ at Stream · | 35 upvotes · 3.3M views

    Winds 2.0 is an open source Podcast/RSS reader developed by Stream with a core goal to enable a wide range of developers to contribute.

    We chose JavaScript because nearly every developer knows or can, at the very least, read JavaScript. With ES6 and Node.js v10.x.x, it’s become a very capable language. Async/Await is powerful and easy to use (Async/Await vs Promises). Babel allows us to experiment with next-generation JavaScript (features that are not in the official JavaScript spec yet). Yarn allows us to consistently install packages quickly (and is filled with tons of new tricks)

    We’re using JavaScript for everything – both front and backend. Most of our team is experienced with Go and Python, so Node was not an obvious choice for this app.

    Sure... there will be haters who refuse to acknowledge that there is anything remotely positive about JavaScript (there are even rants on Hacker News about Node.js); however, without writing completely in JavaScript, we would not have seen the results we did.

    #FrameworksFullStack #Languages

    See more
    Matplotlib logo

    Matplotlib

    1.2K
    321
    10
    A plotting library for the Python programming language
    1.2K
    321
    + 1
    10
    PROS OF MATPLOTLIB
    • 10
      The standard Swiss Army Knife of plotting
    CONS OF MATPLOTLIB
    • 5
      Lots of code

    related Matplotlib posts

    Shared insights
    on
    MatplotlibMatplotlibBokehBokehDjangoDjango

    Hi - I am looking to develop an app accessed by a browser that will display interactive networks (including adding or deleting nodes, edges, labels (or changing labels) based on user input. Look to use Django at the backend. Also need to manage graph versions if one person makes a graph change while another person is looking at it. Mainly tree networks for starters anyway. I probably will use the Networkx package. Not sure what the pros and cons are using Bokeh vs Matplotlib. I would be grateful for any comments or suggestions. Thanks.

    See more
    JavaScript logo

    JavaScript

    349.5K
    266.2K
    8.1K
    Lightweight, interpreted, object-oriented language with first-class functions
    349.5K
    266.2K
    + 1
    8.1K
    PROS OF JAVASCRIPT
    • 1.7K
      Can be used on frontend/backend
    • 1.5K
      It's everywhere
    • 1.2K
      Lots of great frameworks
    • 896
      Fast
    • 745
      Light weight
    • 425
      Flexible
    • 392
      You can't get a device today that doesn't run js
    • 286
      Non-blocking i/o
    • 236
      Ubiquitousness
    • 191
      Expressive
    • 55
      Extended functionality to web pages
    • 49
      Relatively easy language
    • 46
      Executed on the client side
    • 30
      Relatively fast to the end user
    • 25
      Pure Javascript
    • 21
      Functional programming
    • 15
      Async
    • 13
      Full-stack
    • 12
      Setup is easy
    • 12
      Its everywhere
    • 11
      JavaScript is the New PHP
    • 11
      Because I love functions
    • 10
      Like it or not, JS is part of the web standard
    • 9
      Can be used in backend, frontend and DB
    • 9
      Expansive community
    • 9
      Future Language of The Web
    • 9
      Easy
    • 8
      No need to use PHP
    • 8
      For the good parts
    • 8
      Can be used both as frontend and backend as well
    • 8
      Everyone use it
    • 8
      Most Popular Language in the World
    • 8
      Easy to hire developers
    • 7
      Love-hate relationship
    • 7
      Powerful
    • 7
      Photoshop has 3 JS runtimes built in
    • 7
      Evolution of C
    • 7
      Popularized Class-Less Architecture & Lambdas
    • 7
      Agile, packages simple to use
    • 7
      Supports lambdas and closures
    • 6
      1.6K Can be used on frontend/backend
    • 6
      It's fun
    • 6
      Hard not to use
    • 6
      Nice
    • 6
      Client side JS uses the visitors CPU to save Server Res
    • 6
      Versitile
    • 6
      It let's me use Babel & Typescript
    • 6
      Easy to make something
    • 6
      Its fun and fast
    • 6
      Can be used on frontend/backend/Mobile/create PRO Ui
    • 5
      Function expressions are useful for callbacks
    • 5
      What to add
    • 5
      Client processing
    • 5
      Everywhere
    • 5
      Scope manipulation
    • 5
      Stockholm Syndrome
    • 5
      Promise relationship
    • 5
      Clojurescript
    • 4
      Because it is so simple and lightweight
    • 4
      Only Programming language on browser
    • 1
      Hard to learn
    • 1
      Test
    • 1
      Test2
    • 1
      Easy to understand
    • 1
      Not the best
    • 1
      Easy to learn
    • 1
      Subskill #4
    • 0
      Hard 彤
    CONS OF JAVASCRIPT
    • 22
      A constant moving target, too much churn
    • 20
      Horribly inconsistent
    • 15
      Javascript is the New PHP
    • 9
      No ability to monitor memory utilitization
    • 8
      Shows Zero output in case of ANY error
    • 7
      Thinks strange results are better than errors
    • 6
      Can be ugly
    • 3
      No GitHub
    • 2
      Slow

    related JavaScript posts

    Zach Holman

    Oof. I have truly hated JavaScript for a long time. Like, for over twenty years now. Like, since the Clinton administration. It's always been a nightmare to deal with all of the aspects of that silly language.

    But wowza, things have changed. Tooling is just way, way better. I'm primarily web-oriented, and using React and Apollo together the past few years really opened my eyes to building rich apps. And I deeply apologize for using the phrase rich apps; I don't think I've ever said such Enterprisey words before.

    But yeah, things are different now. I still love Rails, and still use it for a lot of apps I build. But it's that silly rich apps phrase that's the problem. Users have way more comprehensive expectations than they did even five years ago, and the JS community does a good job at building tools and tech that tackle the problems of making heavy, complicated UI and frontend work.

    Obviously there's a lot of things happening here, so just saying "JavaScript isn't terrible" might encompass a huge amount of libraries and frameworks. But if you're like me, yeah, give things another shot- I'm somehow not hating on JavaScript anymore and... gulp... I kinda love it.

    See more
    Conor Myhrvold
    Tech Brand Mgr, Office of CTO at Uber · | 44 upvotes · 9.6M views

    How Uber developed the open source, end-to-end distributed tracing Jaeger , now a CNCF project:

    Distributed tracing is quickly becoming a must-have component in the tools that organizations use to monitor their complex, microservice-based architectures. At Uber, our open source distributed tracing system Jaeger saw large-scale internal adoption throughout 2016, integrated into hundreds of microservices and now recording thousands of traces every second.

    Here is the story of how we got here, from investigating off-the-shelf solutions like Zipkin, to why we switched from pull to push architecture, and how distributed tracing will continue to evolve:

    https://eng.uber.com/distributed-tracing/

    (GitHub Pages : https://www.jaegertracing.io/, GitHub: https://github.com/jaegertracing/jaeger)

    Bindings/Operator: Python Java Node.js Go C++ Kubernetes JavaScript OpenShift C# Apache Spark

    See more
    Git logo

    Git

    288.5K
    173.5K
    6.6K
    Fast, scalable, distributed revision control system
    288.5K
    173.5K
    + 1
    6.6K
    PROS OF GIT
    • 1.4K
      Distributed version control system
    • 1.1K
      Efficient branching and merging
    • 959
      Fast
    • 845
      Open source
    • 726
      Better than svn
    • 368
      Great command-line application
    • 306
      Simple
    • 291
      Free
    • 232
      Easy to use
    • 222
      Does not require server
    • 27
      Distributed
    • 22
      Small & Fast
    • 18
      Feature based workflow
    • 15
      Staging Area
    • 13
      Most wide-spread VSC
    • 11
      Role-based codelines
    • 11
      Disposable Experimentation
    • 7
      Frictionless Context Switching
    • 6
      Data Assurance
    • 5
      Efficient
    • 4
      Just awesome
    • 3
      Github integration
    • 3
      Easy branching and merging
    • 2
      Compatible
    • 2
      Flexible
    • 2
      Possible to lose history and commits
    • 1
      Rebase supported natively; reflog; access to plumbing
    • 1
      Light
    • 1
      Team Integration
    • 1
      Fast, scalable, distributed revision control system
    • 1
      Easy
    • 1
      Flexible, easy, Safe, and fast
    • 1
      CLI is great, but the GUI tools are awesome
    • 1
      It's what you do
    • 0
      Phinx
    CONS OF GIT
    • 16
      Hard to learn
    • 11
      Inconsistent command line interface
    • 9
      Easy to lose uncommitted work
    • 7
      Worst documentation ever possibly made
    • 5
      Awful merge handling
    • 3
      Unexistent preventive security flows
    • 3
      Rebase hell
    • 2
      When --force is disabled, cannot rebase
    • 2
      Ironically even die-hard supporters screw up badly
    • 1
      Doesn't scale for big data

    related Git posts

    Simon Reymann
    Senior Fullstack Developer at QUANTUSflow Software GmbH · | 30 upvotes · 9M views

    Our whole DevOps stack consists of the following tools:

    • GitHub (incl. GitHub Pages/Markdown for Documentation, GettingStarted and HowTo's) for collaborative review and code management tool
    • Respectively Git as revision control system
    • SourceTree as Git GUI
    • Visual Studio Code as IDE
    • CircleCI for continuous integration (automatize development process)
    • Prettier / TSLint / ESLint as code linter
    • SonarQube as quality gate
    • Docker as container management (incl. Docker Compose for multi-container application management)
    • VirtualBox for operating system simulation tests
    • Kubernetes as cluster management for docker containers
    • Heroku for deploying in test environments
    • nginx as web server (preferably used as facade server in production environment)
    • SSLMate (using OpenSSL) for certificate management
    • Amazon EC2 (incl. Amazon S3) for deploying in stage (production-like) and production environments
    • PostgreSQL as preferred database system
    • Redis as preferred in-memory database/store (great for caching)

    The main reason we have chosen Kubernetes over Docker Swarm is related to the following artifacts:

    • Key features: Easy and flexible installation, Clear dashboard, Great scaling operations, Monitoring is an integral part, Great load balancing concepts, Monitors the condition and ensures compensation in the event of failure.
    • Applications: An application can be deployed using a combination of pods, deployments, and services (or micro-services).
    • Functionality: Kubernetes as a complex installation and setup process, but it not as limited as Docker Swarm.
    • Monitoring: It supports multiple versions of logging and monitoring when the services are deployed within the cluster (Elasticsearch/Kibana (ELK), Heapster/Grafana, Sysdig cloud integration).
    • Scalability: All-in-one framework for distributed systems.
    • Other Benefits: Kubernetes is backed by the Cloud Native Computing Foundation (CNCF), huge community among container orchestration tools, it is an open source and modular tool that works with any OS.
    See more
    Tymoteusz Paul
    Devops guy at X20X Development LTD · | 23 upvotes · 8M views

    Often enough I have to explain my way of going about setting up a CI/CD pipeline with multiple deployment platforms. Since I am a bit tired of yapping the same every single time, I've decided to write it up and share with the world this way, and send people to read it instead ;). I will explain it on "live-example" of how the Rome got built, basing that current methodology exists only of readme.md and wishes of good luck (as it usually is ;)).

    It always starts with an app, whatever it may be and reading the readmes available while Vagrant and VirtualBox is installing and updating. Following that is the first hurdle to go over - convert all the instruction/scripts into Ansible playbook(s), and only stopping when doing a clear vagrant up or vagrant reload we will have a fully working environment. As our Vagrant environment is now functional, it's time to break it! This is the moment to look for how things can be done better (too rigid/too lose versioning? Sloppy environment setup?) and replace them with the right way to do stuff, one that won't bite us in the backside. This is the point, and the best opportunity, to upcycle the existing way of doing dev environment to produce a proper, production-grade product.

    I should probably digress here for a moment and explain why. I firmly believe that the way you deploy production is the same way you should deploy develop, shy of few debugging-friendly setting. This way you avoid the discrepancy between how production work vs how development works, which almost always causes major pains in the back of the neck, and with use of proper tools should mean no more work for the developers. That's why we start with Vagrant as developer boxes should be as easy as vagrant up, but the meat of our product lies in Ansible which will do meat of the work and can be applied to almost anything: AWS, bare metal, docker, LXC, in open net, behind vpn - you name it.

    We must also give proper consideration to monitoring and logging hoovering at this point. My generic answer here is to grab Elasticsearch, Kibana, and Logstash. While for different use cases there may be better solutions, this one is well battle-tested, performs reasonably and is very easy to scale both vertically (within some limits) and horizontally. Logstash rules are easy to write and are well supported in maintenance through Ansible, which as I've mentioned earlier, are at the very core of things, and creating triggers/reports and alerts based on Elastic and Kibana is generally a breeze, including some quite complex aggregations.

    If we are happy with the state of the Ansible it's time to move on and put all those roles and playbooks to work. Namely, we need something to manage our CI/CD pipelines. For me, the choice is obvious: TeamCity. It's modern, robust and unlike most of the light-weight alternatives, it's transparent. What I mean by that is that it doesn't tell you how to do things, doesn't limit your ways to deploy, or test, or package for that matter. Instead, it provides a developer-friendly and rich playground for your pipelines. You can do most the same with Jenkins, but it has a quite dated look and feel to it, while also missing some key functionality that must be brought in via plugins (like quality REST API which comes built-in with TeamCity). It also comes with all the common-handy plugins like Slack or Apache Maven integration.

    The exact flow between CI and CD varies too greatly from one application to another to describe, so I will outline a few rules that guide me in it: 1. Make build steps as small as possible. This way when something breaks, we know exactly where, without needing to dig and root around. 2. All security credentials besides development environment must be sources from individual Vault instances. Keys to those containers should exist only on the CI/CD box and accessible by a few people (the less the better). This is pretty self-explanatory, as anything besides dev may contain sensitive data and, at times, be public-facing. Because of that appropriate security must be present. TeamCity shines in this department with excellent secrets-management. 3. Every part of the build chain shall consume and produce artifacts. If it creates nothing, it likely shouldn't be its own build. This way if any issue shows up with any environment or version, all developer has to do it is grab appropriate artifacts to reproduce the issue locally. 4. Deployment builds should be directly tied to specific Git branches/tags. This enables much easier tracking of what caused an issue, including automated identifying and tagging the author (nothing like automated regression testing!).

    Speaking of deployments, I generally try to keep it simple but also with a close eye on the wallet. Because of that, I am more than happy with AWS or another cloud provider, but also constantly peeking at the loads and do we get the value of what we are paying for. Often enough the pattern of use is not constantly erratic, but rather has a firm baseline which could be migrated away from the cloud and into bare metal boxes. That is another part where this approach strongly triumphs over the common Docker and CircleCI setup, where you are very much tied in to use cloud providers and getting out is expensive. Here to embrace bare-metal hosting all you need is a help of some container-based self-hosting software, my personal preference is with Proxmox and LXC. Following that all you must write are ansible scripts to manage hardware of Proxmox, similar way as you do for Amazon EC2 (ansible supports both greatly) and you are good to go. One does not exclude another, quite the opposite, as they can live in great synergy and cut your costs dramatically (the heavier your base load, the bigger the savings) while providing production-grade resiliency.

    See more