Questions tagged [yaws]

Yaws is a high perfomance HTTP 1.1 webserver particularly well suited for dynamic-content web applications.

Yaws is a high performance HTTP 1.1 web server particularly well suited for dynamic-content web applications. Two separate modes of operation are supported:

  • Standalone mode where Yaws runs as a regular web server daemon. This is the default mode.
  • Embedded mode where Yaws runs as an embedded web server in another Erlang application.

Yaws is entirely written in Erlang, and furthermore it is a multi-threaded web server where one Erlang lightweight process is used to handle each client.

The main advantages of Yaws compared to other Web technologies are performance and elegance. The performance comes from the underlying Erlang system and its ability to handle concurrent processes in an efficient way. Its elegance comes from Erlang as well. Web applications don't have to be written in ugly ad hoc languages.

See more: https://github.com/erlyaws/yaws

193 questions
21
votes
1 answer

Very Large Mnesia Tables in Production

We are using Mnesia as a primary Database for a very large system. Mnesia Fragmented Tables have behaved so well over the testing period. System has got about 15 tables, each replicated across 2 sites (nodes), and each table is highly fragmented.…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
9
votes
3 answers

Erlang's maximum number of simultaneous open ports?

Does the erlang TCP/IP library have some limitations? I've done some searching but can't find any definitive answers. I have set the ERL_MAX_PORTS environment variable to 12000 and configured Yaws to use unlimited connections. I've written a simple…
ckovacs
  • 357
  • 2
  • 11
8
votes
0 answers

Mnesia Fragmentation and replication: resultant availability and reliability

Following the solutions to the question i asked recently about mnesia fragmentation, I still have a number of challenges. Consider the following scenario (The question I am asking is based on what follows below): You have a data driven enterprise…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
8
votes
1 answer

Introduction to Erlang/OTP continuous deployment

Note: this is an evolutionary continuation from my previous question on a similar topic. I have been searching for the 'best practices' regarding deploying and updating an Erlang/OTP release (a set of applications) for some time now, but I could not…
skanatek
  • 5,133
  • 3
  • 47
  • 75
7
votes
3 answers

Erlang YAWS: How to test a simple REST web service?

In a simple Erlang YAWS-based RESTful application I would like to have a set of tests that send HTTP requests to a RESTful API, get responses from the server and then test those responses. It would be nice if each "send-request-get-request-test"…
skanatek
  • 5,133
  • 3
  • 47
  • 75
7
votes
1 answer

How to change Yaws appmods files?

I am trying to manage Yast appmod. So: yaws.conf: port = 8005 listen = 127.0.0.1 docroot = /home/ziel/www/CatsScript/src/ appmods = from http://yaws.hyber.org/appmods.yaws…
zie1ony
  • 1,190
  • 2
  • 14
  • 33
6
votes
4 answers

Is it possible to develop a powerful web search engine using Erlang, Mnesia & Yaws?

I am thinking of developing a web search engine using Erlang, Mnesia & Yaws. Is it possible to make a powerful and the fastest web search engine using these software? What will it need to accomplish this and how what do I start with?
Ankit Singh
  • 2,602
  • 6
  • 32
  • 44
6
votes
3 answers

Where does Nitrogen get the best performance - yaws, mochiweb, or inets?

The Nitrogen project web page declares equal support for yaws, mochiweb, and inets, but with which of these web servers is it going to perform the best? I.e. for a large scale application with mostly dynamic content with nitrogen + a web server…
Jeremy Raymond
  • 5,817
  • 3
  • 31
  • 33
6
votes
1 answer

Calling a function from an .ERL to .YAWS file

I am very new to YAWS and ERLANG and would like to call a function from a different .erl file to the YAWS page. i.e. I have a page called webpage.yaws and have another file called utilities.erl and would like to call a function from…
cgval
  • 1,096
  • 5
  • 14
  • 31
5
votes
2 answers

changing a specific header in yaws respond

I would like to change the http-header "Server: " value dynamically (while building the respond) in yaws. I tried:- [{status, 200}, {allheaders, [{header, ["Server: ","ASP.NET Development Server/10.0.0.0"] }] }, …
IMHeadHunter
  • 272
  • 3
  • 11
5
votes
5 answers

Erlang and JavaScript MD5 Digest match

Testing the Javascript Implementation of MD5 here: http://www.webtoolkit.info/javascript-md5.html gives the following output: MD5("muzaaya") = "00e081abefbbbf72b2d5258196a9b6d0" Going to my erlang shell, and calculating the MD5 of the same value i…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
5
votes
1 answer

Running Yaws Apps

I am quite new to erlang and yaws. I after playing around with the language and easy yaws features like ehtml and normal appmods I tried to write a yapp. I followed http://yaws.hyber.org/yapp_intro.yaws and https://github.com/davide/yawn/wiki to get…
Marc Fischer
  • 1,296
  • 1
  • 13
  • 16
5
votes
1 answer

Web server tolerance to high client poll rate: Cowboy vs. Yaws web servers

I have been building a real-time notification system. It’s part of a web application, but events have to be seen as soon as they occur. Long polling was not an option because it would be expensive for the web server to hold on to connections when no…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
4
votes
1 answer

Compiling and running Yaws appmods

Appmods are a way to let the application programmer take control over the URL path. They are implemented as Erlang modules. For example myappmod.erl -module(myappmod). -include("../../yaws_api.hrl"). -compile(export_all). out(Arg) -> Method =…
4
votes
1 answer

How to set up a Yaws yapp?

I am struggling with setting up a yapp for Yaws. Can anyone provide a link to documentation or copy paste a short example here? Sorry that this is a rather unspecific question, but I am more or less lost :-) Thanks, Jan
Jan Algermissen
  • 4,930
  • 4
  • 26
  • 39
1
2 3
12 13