Giter Club home page Giter Club logo

antikythera's Introduction

Antikythera Framework

hex badge

Antikythera is an Elixir framework to build your own in-house PaaS (Platform as a Service).

You can run multiple web services while managing only a single cluster of ErlangVM nodes. From the viewpoint of service developers antikythera provides FaaS(Function as a Service)-like development experiences.

Note: Antikythera is already used in production at ACCESS, though as an OSS, it is still in early development stage and missing many components. Please be aware of that, and stay tuned for further additions!

Features

  • As a platform for multiple services:
    • Resource control for multi-service and multi-tenant use cases
    • Automated deployment without affecting other running services
    • Built-in logging, monitoring and configuration management
    • Service-to-service communications without network overhead
  • As a web framework:
    • HTTP request processing with arbitrary Elixir code with WebSocket support
    • Domain-based routing for multiple services; path-based routing within single service
    • CDN support for static contents, HAML template for dynamic web pages
  • As an asynchronous job executor:
    • Built-in distributed job queues
    • Running arbitrary Elixir code for each job

Basic architecture

Antikythera Architecture

  • We refer to each antikythera cluster as an "antikythera instance", and each web service running within an antikythera instance as a "gear".
  • Antikythera is heavily dependent on the power of ErlangVM.
    • Antikythera is written in Elixir, and all gears must also be written in Elixir.
  • Multiple gears are co-located and executed within the same ErlangVMs of an antikythera instance.
    • This type of co-location of multiple applications are sometimes referred to as "nano-services architecture".
    • This way we can eliminate the infrastructure/operational cost for having multiple web application stacks.
    • Also, inter-service communications in a micro-services architecture become gear-to-gear communications in this nano-services architecture. Unlike micro-services architecture, it doesn't require network roundtrip as all gears are running within a single ErlangVM, resulting in lower communication overhead.
    • Although gears share the same computing resources, they are executed in an independent manner thanks to the Erlang's process model.
    • Antikythera instance and its gears are all separate mix projects.
      • Developers of different gears can work on their own projects, independently.
      • Library dependencies are defined per-antikythera-instance, and all gears inherit those dependencies.

Getting Started

See our Getting Started guide!

Documentation

Contributing

We encourage you to contribute to antikythera! Please check out our Contributing Guide.

For both core and gear development, please make use of our Style Guide.

Copyright and License

Copyright(c) 2015-2024 ACCESS CO., LTD. All rights reserved.

Antikythera source code is licensed under the Apache License version 2.0.

antikythera's People

Contributors

adaichiota avatar adaikikamata avatar amasakitakahashi avatar amikechen avatar anobuhisamasaki avatar asyorikano avatar ayukisekiguchi avatar double-oxygen avatar fumipo-theta avatar irista56 avatar s417-lama avatar sekit avatar sylph01 avatar toyoaki-k avatar ttokit avatar ymtszw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

antikythera's Issues

Relaxing limitation of versions?

When I tried to compile antikythera_instance_example.
It brings following errors:

antikythera_instance_example% mix deps.get
** (Mix.Error) Incorrect Erlang/OTP version! required: '20.2.2', used: '20.3.4'
    (mix) lib/mix.ex:291: Mix.raise/1
    deps/antikythera/mix_common.exs:22: (module)
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
    (stdlib) erl_eval.erl:122: :erl_eval.exprs/5

Yeah, I use latest stable versions OTP 20.3.4 and Elixir 1.6.4.
It seems the program works correctly.

But personaly, to being used this product widely, I think it needs to relaxing limitation of versions.
I'm glad you to If you consider it.

Thanks.

Adding `SameSite` to `Antikythera.Http.SetCookie`

Rationale

Antikythera.Http.SetCookie lacks the option to set the SameSite attribute of Set-Cookie header, and now it is forced into using SameSite=Lax.
As my team and I came across a need to set the SameSite directive to SameSite=none (especially in combination with Antikythera.Session), I am raising this issue and proposing the addition of this functionality. This would also help gears that want to enforce SameSite=strict.

Proposed changes

  • Add same_site field to Antikythera.Http.SetCookie
    • This will be an enum that takes either :lax, :strict, or :none
    • Adding a field under the SetCookie module's field list and adding a type would do this
    • I am ready to write up a patch for this change
  • Add an interface to Antikythera.Plug.Session.load/2
    • When explicitly adding a Cookie entry, passing an optional argument to Antikythera.Conn.put_resp_cookie/4 can achieve this
    • But when used in combination with Antikythera.Plug.Session.load/2 it is not trivial, so I would like advice on how to change this
      • As of right now, I am thinking of passing options under :set_cookie key, then passing this option to make_before_send/2 (this would add an argument and thus change the signature to make_before_send/3 ) so that it can be passed onto Antikythera.Conn.put_resp_cookie/4 (now called with only 3 arguments).

Relevant references

Roadmap?

Hi antikythera team,

I investigating this project and was wondering if there is a roadmap or a list of things that the team wants to have.

The contribution guide mentions to use the mailing list, but there's no activity there so I hope using the issues tracker for discussions is fine.

Thanks

Use nomnoml for diagrams?

I redrew a diagram using nomnoml. I can draw more if wanted.

Original:

image

Nomnoml:

nomnoml(1)

[Load Balancer | HTTPS and Websocket Traffic] -> 1..* [Erlang VM (per server) |

[antikythera core | 
Domain-based request routing
]->[gear_x]
[antikythera core]->[gear_y]

[gear_y] -- [<note> Gear-to-gear communication]
[gear_x] -- [<note> Gear-to-gear communication]
[antikythera core] -- [<note> More gears..]
]

[Load Balancer | HTTPS and Websocket Traffic] -> [<note> More Erlang vms]
[Erlang VM (per server)] <-> [<note> Inter-node communication for websockets and async jobs]

Useful sites:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.