Book: Hardcore Erlang

View: New views
13 Messages — Rating Filter:   Alert me  

Book: Hardcore Erlang

by Joel Reymont :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I signed up with Pragmatic Programmers to write a new Erlang book.

Working title is Hardcore Erlang and it will be built around  
OpenPoker. The emphasis of the book will be more on showing how to  
write scalable Erlang servers and less on how to write a poker server.

Apart from the following topics, are there any other topics you would  
like me to cover?

        Thanks, Joel

----

- The architecture of a poker server from far above

- Thinking processes instead of objects

- Game logic
  - Stacking state machines
  - Swapping logic

- Storing data in Mnesia

- State machines (gen_fsm)

- OTP behaviours

- Poker bots
  - Simulating players
  - Scripting

- Designing a network protocol
  - Binary parsing
  - Pickler combinators

- Automatic clustering

- Fault tolerance and fail-over

- Load balancing

- Testing a network server

- Debugging Erlang software

        Thanks, Joel

--
http://wagerlabs.com





_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions

Re: Book: Hardcore Erlang

by Ben Butler-Cole-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Another couple of things I'd like to hear about are:
 - upgrading distributed systems
 - examples of other architectures

Ben

----- Original Message ----
From: Joel Reymont <joelr1@...>
To: Erlang Questions <erlang-questions@...>
Sent: Friday, November 9, 2007 10:54:08 AM
Subject: [erlang-questions] Book: Hardcore Erlang


I signed up with Pragmatic Programmers to write a new Erlang book.

Working title is Hardcore Erlang and it will be built around  
OpenPoker. The emphasis of the book will be more on showing how to  
write scalable Erlang servers and less on how to write a poker server.

Apart from the following topics, are there any other topics you would  
like me to cover?

    Thanks, Joel

----

- The architecture of a poker server from far above

- Thinking processes instead of objects

- Game logic
  - Stacking state machines
  - Swapping logic

- Storing data in Mnesia

- State machines (gen_fsm)

- OTP behaviours

- Poker bots
  - Simulating players
  - Scripting

- Designing a network protocol
  - Binary parsing
  - Pickler combinators

- Automatic clustering

- Fault tolerance and fail-over

- Load balancing

- Testing a network server

- Debugging Erlang software

    Thanks, Joel

--
http://wagerlabs.com





_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions



_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions

Re: Book: Hardcore Erlang

by Jack Orenstein-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> - Fault tolerance and fail-over

I'd include startup and shutdown in this part. A system that is not  
completely up may be on it's way up (startup), on its way down  
(shutdown) or failing over. Doing the right thing for each scenario  
(and in a way that doesn't break the others) is sometimes very tricky.

Sounds like a very useful book.

Jack


_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions

Re: Book: Hardcore Erlang

by Alexander Lamb-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some items:

- how to bridge to other systems (through a message bus maybe, e.g.  
RabbitMQ) to "push data out"
- how to handle state for a connected user and bridge to a user  
interface (Web or other)
- how to handle updates of data formats (records) without breaking all  
the chain

Looking forward to read it (now I finished Joe's book:-). When can we  
expect to see it on the shelves?

Alex

Le 9 nov. 07 à 11:54, Joel Reymont a écrit :

> I signed up with Pragmatic Programmers to write a new Erlang book.
>
> Working title is Hardcore Erlang and it will be built around
> OpenPoker. The emphasis of the book will be more on showing how to
> write scalable Erlang servers and less on how to write a poker server.
>
> Apart from the following topics, are there any other topics you would
> like me to cover?
>
> Thanks, Joel
>
> ----
>
> - The architecture of a poker server from far above
>
> - Thinking processes instead of objects
>
> - Game logic
>  - Stacking state machines
>  - Swapping logic
>
> - Storing data in Mnesia
>
> - State machines (gen_fsm)
>
> - OTP behaviours
>
> - Poker bots
>  - Simulating players
>  - Scripting
>
> - Designing a network protocol
>  - Binary parsing
>  - Pickler combinators
>
> - Automatic clustering
>
> - Fault tolerance and fail-over
>
> - Load balancing
>
> - Testing a network server
>
> - Debugging Erlang software
>
> Thanks, Joel
>
> --
> http://wagerlabs.com
>
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@...
> http://www.erlang.org/mailman/listinfo/erlang-questions
>

--
Alexander Lamb
Founding Associate
RODANOTECH Sàrl

4 ch. de la Tour de Champel
1206 Geneva
Switzerland

Tel:  022 347 77 37
Fax: 022 347 77 38

http://www.rodanotech.ch



_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions

Re: Book: Hardcore Erlang

by Joel Reymont :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Nov 9, 2007, at 1:09 PM, Alexander Lamb wrote:

> Looking forward to read it (now I finished Joe's book:-). When can  
> we expect to see it on the shelves?


6 months is my goal. You should start seeing drafts much earlier.

        Thanks, Joel

--
http://wagerlabs.com





_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions

Re: Book: Hardcore Erlang

by Zvi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I would like to see full real-life example of how to deploy OpenPoker on AWS (EC2, S3) and full life-cycle management of such a system:
* initial deployment
* monitoring and management
* handling Mnesia persistence and distribution
* hot code upgrades

Zvi

Joel Reymont wrote:
I signed up with Pragmatic Programmers to write a new Erlang book.

Working title is Hardcore Erlang and it will be built around  
OpenPoker. The emphasis of the book will be more on showing how to  
write scalable Erlang servers and less on how to write a poker server.

Apart from the following topics, are there any other topics you would  
like me to cover?

        Thanks, Joel

----

- The architecture of a poker server from far above

- Thinking processes instead of objects

- Game logic
  - Stacking state machines
  - Swapping logic

- Storing data in Mnesia

- State machines (gen_fsm)

- OTP behaviours

- Poker bots
  - Simulating players
  - Scripting

- Designing a network protocol
  - Binary parsing
  - Pickler combinators

- Automatic clustering

- Fault tolerance and fail-over

- Load balancing

- Testing a network server

- Debugging Erlang software

        Thanks, Joel

--
http://wagerlabs.com





_______________________________________________
erlang-questions mailing list
erlang-questions@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-questions

Re: Book: Hardcore Erlang

by Joel Reymont :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It will be done!

On Nov 9, 2007, at 2:51 PM, Zvi wrote:

> I would like to see full real-life example of how to deploy  
> OpenPoker on AWS
> (EC2, S3) and full life-cycle management of such a system:
> * initial deployment
> * monitoring and management
> * handling Mnesia persistence and distribution
> * hot code upgrades

--
http://wagerlabs.com





_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions

Re: Book: Hardcore Erlang

by Dmitrii Dimandt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Joel Reymont wrote:
> I signed up with Pragmatic Programmers to write a new Erlang book.
>
> Working title is Hardcore Erlang and it will be built around  
> OpenPoker. The emphasis of the book will be more on showing how to  
> write scalable Erlang servers and less on how to write a poker server.
>
>  
Amazing! Hoping to get to read it as soon as possible!
_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions

Re: Book: Hardcore Erlang

by Greg Burri-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
Vendetta Online is a MMORPG which use Erlang for the servers.
This can be an good idea to ask the development team about their experience.

Here is the website : http://www.vendetta-online.com/

Greg

On 11/9/07, Joel Reymont <joelr1@...> wrote:

> I signed up with Pragmatic Programmers to write a new Erlang book.
>
> Working title is Hardcore Erlang and it will be built around
> OpenPoker. The emphasis of the book will be more on showing how to
> write scalable Erlang servers and less on how to write a poker server.
>
> Apart from the following topics, are there any other topics you would
> like me to cover?
>
> Thanks, Joel
>
> ----
>
> - The architecture of a poker server from far above
>
> - Thinking processes instead of objects
>
> - Game logic
>   - Stacking state machines
>   - Swapping logic
>
> - Storing data in Mnesia
>
> - State machines (gen_fsm)
>
> - OTP behaviours
>
> - Poker bots
>   - Simulating players
>   - Scripting
>
> - Designing a network protocol
>   - Binary parsing
>   - Pickler combinators
>
> - Automatic clustering
>
> - Fault tolerance and fail-over
>
> - Load balancing
>
> - Testing a network server
>
> - Debugging Erlang software
>
> Thanks, Joel
>
> --
> http://wagerlabs.com
>
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@...
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions

Re: Book: Hardcore Erlang

by David King-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I signed up with Pragmatic Programmers to write a new Erlang book.
> Working title is Hardcore Erlang and it will be built around
> OpenPoker. The emphasis of the book will be more on showing how to
> write scalable Erlang servers and less on how to write a poker server.
> Apart from the following topics, are there any other topics you would
> like me to cover?

I'd be especially interested in seeing some operational issues

* One of my servers has a process that has jumped to 100% CPU. How do  
I find out what's going on?
* One of my gen_servers is in a restart loop. How can I trace it and  
find out why?
* The mnesia server has too much I/O load, so we want to add another  
fragment node. How do I do it?

etc



> Thanks, Joel
> ----
>
> - The architecture of a poker server from far above
>
> - Thinking processes instead of objects
>
> - Game logic
>   - Stacking state machines
>   - Swapping logic
>
> - Storing data in Mnesia
>
> - State machines (gen_fsm)
>
> - OTP behaviours
>
> - Poker bots
>   - Simulating players
>   - Scripting
>
> - Designing a network protocol
>   - Binary parsing
>   - Pickler combinators
>
> - Automatic clustering
>
> - Fault tolerance and fail-over
>
> - Load balancing
>
> - Testing a network server
>
> - Debugging Erlang software
>
> Thanks, Joel
>
> --
> http://wagerlabs.com
>
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@...
> http://www.erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions

Re: Book: Hardcore Erlang

by jm-13 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Zvi wrote:
> I would like to see full real-life example of how to deploy OpenPoker on AWS
> (EC2, S3) and full life-cycle management of such a system:
> * initial deployment
> * monitoring and management
> * handling Mnesia persistence and distribution
> * hot code upgrades
>

I second this. There's a bit out there now on developing in erlang, but
very little on deployment. May be a section entitled "Moving from
development to deployment" covering such things as tightening things
down, automated start up of the various components/application, node
startup, getting it to play nice with unix startup scripts. Actually, on
that note I've been thinking it might be useful to have a node start up
script and separate application[1] start up scripts for a System V style
startup, ie, to would look something like

  starting erlang node red...          ok
  starting erlang node blue...         ok
  starting app1 on node red...         ok
  starting app1 on node blue...        ok
  starting app2 on node red...         ok
  starting app3 on node blue..         ok

etc. This might make erlang integrate better with unix (on other OSes)
and not appear so isolated/strange to the everyday system admin which
would in turn make addoption easier by lowering the learning curve from
the admin's perspective.

[1] By application here I mean a "macro-application" which may be made
up of one or more erlang or "micro-" applications.


Jeff.
_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions

Re: Book: Hardcore Erlang

by Francis Norton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Joel,

On 09/11/2007, Joel Reymont <joelr1@...> wrote:
- Storing data in Mnesia

I think your compliance and security officer would like to have a replicated copy of the database that can be used to data-mine for suspicious patterns of play. As live as possible, but without complex queries slowing down the live DB.

Francis.


_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions

Re: Book: Hardcore Erlang

by Ahmed Ali-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Joel,

How about the following topics? Not all of them are applicable for
OpenPoker but I think they should be present in any "Hardcore Erlang"
book.

* Interoperability with other languages (java, c...etc) including ports
* Detailed discussion of OTP and behaviours. I've been looking at
current documentation but I know there are lots that are not there
* Future direction of Erlang like web (Erlyweb?) Ajax...etc

Thanks for your contribution.

Best regards,

Ahmed

On Nov 9, 2007 2:54 PM, Joel Reymont <joelr1@...> wrote:

> I signed up with Pragmatic Programmers to write a new Erlang book.
>
> Working title is Hardcore Erlang and it will be built around
> OpenPoker. The emphasis of the book will be more on showing how to
> write scalable Erlang servers and less on how to write a poker server.
>
> Apart from the following topics, are there any other topics you would
> like me to cover?
>
>         Thanks, Joel
>
> ----
>
> - The architecture of a poker server from far above
>
> - Thinking processes instead of objects
>
> - Game logic
>   - Stacking state machines
>   - Swapping logic
>
> - Storing data in Mnesia
>
> - State machines (gen_fsm)
>
> - OTP behaviours
>
> - Poker bots
>   - Simulating players
>   - Scripting
>
> - Designing a network protocol
>   - Binary parsing
>   - Pickler combinators
>
> - Automatic clustering
>
> - Fault tolerance and fail-over
>
> - Load balancing
>
> - Testing a network server
>
> - Debugging Erlang software
>
>         Thanks, Joel
>
> --
> http://wagerlabs.com
>
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@...
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions