Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this repo without a node backend? #40

Open
Cleop opened this issue Oct 29, 2018 · 1 comment
Open

How to use this repo without a node backend? #40

Cleop opened this issue Oct 29, 2018 · 1 comment
Assignees
Labels
help wanted If you can help make progress with this issue, please comment! question A question needs to be answered before progress can be made on this issue

Comments

@Cleop
Copy link
Member

Cleop commented Oct 29, 2018

I want to use this repo for an elixir project and saw the section about setting up a node server and using node packages crypto and path. I don't think it's good practice to have the two running simultaneously.

We don't have the time on this occasion to rewrite this repo entirely in elixir and so I wanted to know if there is another alternative?

@Cleop Cleop added question A question needs to be answered before progress can be made on this issue help wanted If you can help make progress with this issue, please comment! labels Oct 29, 2018
@Cleop Cleop changed the title How to use this repo without a node setup? How to use this repo without a node backend? Oct 29, 2018
@nelsonic
Copy link
Member

@Cleop the practice of running multiple web/application servers simultaneously is commonly referred to as "Microservices" and is a widely accepted/used application architecture used in most companies. https://en.wikipedia.org/wiki/Microservices

It makes a lot of sense to split the Image Upload functionality into a dedicated & independently tested Lambda Function (which is a micro Node.js Server).

The biggest advantage of having Image Uploads be a separate AWS Lambda Function
is that we can have the graphics library (used for resizing and rotating images) limited to the Lambda
rather than having to install it on the Elixir application server.

There's nothing "wrong" with writing a JS function for this specific use case.
It's a perfect use case for Lambda as image uploading is an infrequently used function
but when it is needed it needs to work flawlessly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted If you can help make progress with this issue, please comment! question A question needs to be answered before progress can be made on this issue
Projects
None yet
Development

No branches or pull requests

2 participants