* Best way to deploy an internal Rack app?
@ 2013-11-21 10:58 Andrew Stewart
2013-11-21 17:22 ` Eric Wong
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Stewart @ 2013-11-21 10:58 UTC (permalink / raw)
To: unicorn list
Hello!
I have a Rails monolith and have identified a few parts which can be chipped off and deployed as self-contained services, called by the monolith.
Each service will be a rack app presenting an API over HTTP. For now everything will run on the same box. The services shouldn't be exposed to the outside world.
I have almost built the first service and am now wondering how best to serve it. For example:
- Does Unicorn alone suffice or should I front it with Nginx?
- To keep the services internal do I just listen to a port on the loopback interface?
Thanks in advance,
Andrew Stewart
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Best way to deploy an internal Rack app?
2013-11-21 10:58 Best way to deploy an internal Rack app? Andrew Stewart
@ 2013-11-21 17:22 ` Eric Wong
0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2013-11-21 17:22 UTC (permalink / raw)
To: unicorn list
Andrew Stewart <boss@airbladesoftware.com> wrote:
> Hello!
>
> I have a Rails monolith and have identified a few parts which can be
> chipped off and deployed as self-contained services, called by the
> monolith.
>
> Each service will be a rack app presenting an API over HTTP. For now
> everything will run on the same box. The services shouldn't be
> exposed to the outside world.
> I have almost built the first service and am now wondering how best to serve it. For example:
>
> - Does Unicorn alone suffice or should I front it with Nginx?
This depends on how you want clients to connect. Either the unicorns
need to listen on different addresses/ports, or you can set up nginx to
handle routing so clients only connect to nginx.
> - To keep the services internal do I just listen to a port on the
> loopback interface?
Any address:port (127.0.0.1:1234, 127.0.0.2:1234, ...), or unix socket.
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-21 17:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-21 10:58 Best way to deploy an internal Rack app? Andrew Stewart
2013-11-21 17:22 ` Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).