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
3
votes
1 answer

REST API implementation using Yaws

I'm trying to build a REST API using the Yaws web server but I'm unable to get Yaws to dispatch requests to my module. -module(rest). -include_lib("stdlib/include/qlc.hrl"). -include_lib("yaws/include/yaws_api.hrl"). -export([out/1, addAirport/4,…
user3382006
  • 69
  • 1
  • 7
3
votes
3 answers

Yaws websocket send message to all connected users

I am using yaws (Erlang framework) for socket communication. I can send message back to the user from server using websocket_send however i need to specify the PID of the user, that means that i can send message back to that user. However, i would…
Jack Daniel's
  • 2,583
  • 22
  • 28
3
votes
1 answer

Yaws as Rebar dependency

How can I install Yaws as a Rebar dependency in my Erlang application? Thanks, LRP
Lloyd R. Prentice
  • 4,329
  • 3
  • 21
  • 31
3
votes
4 answers

UI layer with YAWS webserver

Building a website using erlang YAWS webserver. To generate dynamic content we have to embed erlang code within tags in ".yaws" page, which I feel is not best choice. I am aware of Nitrogen project, but I am not fond of proprietary solution. Could…
curiosity
  • 73
  • 3
2
votes
2 answers

yaws unicode symbols in {html, ...}

Why {html, "доуч"++[1076,1086,1091,1095]} in yaws-page gives me next error: Yaws process died: {badarg,[{erlang,list_to_binary, [[[[208,180,208,190,209,131,209,135,1076, …
Yola
  • 18,496
  • 11
  • 65
  • 106
2
votes
1 answer

How to handle WebSocket messages in an appmod using Yaws?

I have created a simple appmod that sends back the same message as it receives. But I get an error message at the command prompt and the WebSocket connection is closed. If I send a message with 3 chars I get this error message: =ERROR REPORT====…
Jonas
  • 121,568
  • 97
  • 310
  • 388
2
votes
1 answer

"init terminating in do_boot" error message, when starting Yaws on Windows

I would like to develop a web application in Erlang, so I installed Yaws 1.92 on Windows 7. But when I try to start Yaws with both yaws and yaws -i I get this error message: C:\Users\Jonas>yaws {"init terminating in…
Jonas
  • 121,568
  • 97
  • 310
  • 388
2
votes
0 answers

detecting data/node partition errors

The last time I saw a data/partition node error it was because I launched the erlang shell which connected to the node on the same CPU via cookies etc. Immediately after startup the shell dumped the partition error on the screen. This is terribly…
Richard
  • 10,122
  • 10
  • 42
  • 61
2
votes
1 answer

How do i get values from this URL? and execute an erlang module with the values to reply the client with result?

http://www.myserver.com/exile?Key1=Value1&Key2=Value2 When i get a request in this format to my server, how do i handle this request? What i need to do: Need to get all the values and run a Erlang module, and send the result to the client.Is exile a…
Gokul
  • 455
  • 6
  • 17
2
votes
2 answers

Any lightweight erlang based server supporting url parsing like tornado, and no ORM features?

I tried out YAWS and was hoping that someone has already written a URL parser / request handler on top of it. I don't want anything close to ChicagoBoss which includes an ORM as well. Let me know if my question is not clear enough. Thanks.
Sushant Khurana
  • 843
  • 1
  • 10
  • 13
2
votes
1 answer

erlsrv - failed to create a service on windows

was trying to create a windows service like this: erlsrv add muzaaya -w "C:/Folder" -c "test erlang service" -ar "-pa .. -eval \"service:start()\"" i got the following error immediately: erlsrv: Unable to register service with service…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
2
votes
2 answers

YAWS Websocket Trouble

I'm trying to get the YAWS websocket example from here running on my local. It's a basic ws-based echo server. I have YAWS set up and running on localhost:8080 (direct from the Debian repos; no conf changes except pointing it to a new root…
Inaimathi
  • 13,853
  • 9
  • 49
  • 93
2
votes
4 answers

Yaws process died

I do performance testing of our Erlang application with OpenSTA. The test runs with 100 virtual users. At some point the following errors start popping up: Yaws process died: {{badmatch,{error,eacces}}, [{yaws_server,ut_read,1}, …
Martin Dimitrov
  • 4,796
  • 5
  • 46
  • 62
2
votes
1 answer

how do we efficiently handle time related constraints on mnesia records?

i am writing records into mnesia which should be kept there only for an allowed time (24 hours). after 24 hours, before a user modifies part of them, the system should remove them automatically. forexample, a user is given free airtime (for voice…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
2
votes
2 answers

Erlang and YAWS setup in Windows

I am trying to setup Erlang with YAWS in Windows. I Installed otp_win32_R14B03.exe and it worked fine and I am able to compile Erlang Programs. I installed Yaws-1.90-windows-installer.exe, then from command prompt I tried running YAWS -i command…
skvsree
  • 487
  • 1
  • 7
  • 19
1 2
3
12 13